summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nvim/init.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index 2cbde67..d966034 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -51,9 +51,13 @@ cmp.setup({
})
local capabilities = require('cmp_nvim_lsp').default_capabilities()
-require'lspconfig'.clangd.setup{
- capabilities = capabilities
+local lsp = require'lspconfig'
+local servers = {
+ 'clangd',
}
+for _, server in ipairs(servers) do
+ lsp[server].setup{capabilities = capabilities}
+end
require("luasnip.loaders.from_vscode").lazy_load()