diff options
Diffstat (limited to '.config/nvim/lua/plugins')
-rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index f2bad81..8c08448 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua | |||
@@ -68,6 +68,16 @@ return { | |||
68 | local capabilities = vim.lsp.protocol.make_client_capabilities() | 68 | local capabilities = vim.lsp.protocol.make_client_capabilities() |
69 | capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities) | 69 | capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities) |
70 | 70 | ||
71 | -- misc. | ||
72 | local lspconfig = require('lspconfig') | ||
73 | local servers = { 'tsserver', 'jsonls', 'eslint', 'cssls', 'html', 'vala_ls' } | ||
74 | for _, lsp in pairs(servers) do | ||
75 | lspconfig[lsp].setup { | ||
76 | on_attach = on_attach, | ||
77 | capabilites = capabilities, | ||
78 | } | ||
79 | end | ||
80 | |||
71 | -- lua | 81 | -- lua |
72 | require("lspconfig")["lua_ls"].setup({ | 82 | require("lspconfig")["lua_ls"].setup({ |
73 | on_attach = on_attach, | 83 | on_attach = on_attach, |