minor updates

This commit is contained in:
Arthur Khachaturov 2024-09-19 04:25:07 +03:00
parent e3790a4f3f
commit 628baf3eea
No known key found for this signature in database
GPG key ID: CAC2B7EB6DF45D55
32 changed files with 655 additions and 123 deletions

View file

@ -6,6 +6,8 @@ local servers = {
rust_analyzer = {},
bashls = {},
hls = {},
eslint = {},
ts_ls = {},
}
vim.lsp.set_log_level("debug")
@ -43,7 +45,15 @@ for server_name, config in pairs(servers) do
lspconfig[server_name].setup({
capabilities = capabilities,
on_attach = on_attach,
settings = { [server_name] = config },
settings = {
[server_name] = config ~= {} and {
settings = {
[server_name] = {
config
}
}
} or {}
},
})
end