Merge pull request #376 from Numkil/patch-bug

Fix bug when server not explicitely defined in configuration but installed
This commit is contained in:
Chris Patti 2023-07-25 12:32:09 -04:00 committed by GitHub
commit 3dc1c1c4c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}