aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorMerel Jossart <merel.jossart@outlook.com>2023-07-25 17:06:04 +0200
committerNumkil <merel.jossart@outlook.com>2023-07-25 18:30:47 +0200
commit734cc4e94aec64c8cb3504711978c51b092f2542 (patch)
tree9fefc137ab7124c3b5892a418e334033aa764e13 /init.lua
parentea028fe0b55fa15523e85e72d36c78665080d5e3 (diff)
Fix bug when server not explicitely defined in configuration but installed
Diffstat (limited to 'init.lua')
-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
}