aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Patti <feoh@feoh.org>2023-07-25 12:32:09 -0400
committerGitHub <noreply@github.com>2023-07-25 12:32:09 -0400
commit3dc1c1c4c2ee3d6c5841ea1b3c13a7c123592086 (patch)
tree9fefc137ab7124c3b5892a418e334033aa764e13
parentea028fe0b55fa15523e85e72d36c78665080d5e3 (diff)
parent734cc4e94aec64c8cb3504711978c51b092f2542 (diff)
Merge pull request #376 from Numkil/patch-bug
Fix bug when server not explicitely defined in configuration but installed
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index e5cbed9..c6e7a98 100644
--- a/init.lua
+++ b/init.lua
@@ -463,7 +463,7 @@ mason_lspconfig.setup_handlers {
capabilities = capabilities,
on_attach = on_attach,
settings = servers[server_name],
- filetypes = servers[server_name].filetypes,
+ filetypes = (servers[server_name] or {}).filetypes,
}
end
}