diff options
author | xengineering <me@xengineering.eu> | 2024-03-01 09:01:18 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-03-01 09:01:18 +0100 |
commit | 6bb1e3a0a9ed2a4bcb89fdaea80c2c93be737727 (patch) | |
tree | c3f2e071527ab379d49740612dec1270148e7028 | |
parent | 79c2cce01ed2f11606c72de75675b748b8ff2b2a (diff) | |
download | dotfiles-6bb1e3a0a9ed2a4bcb89fdaea80c2c93be737727.tar dotfiles-6bb1e3a0a9ed2a4bcb89fdaea80c2c93be737727.tar.zst dotfiles-6bb1e3a0a9ed2a4bcb89fdaea80c2c93be737727.zip |
nvim: Refactor to support multiple LSP servers
-rw-r--r-- | nvim/init.lua | 8 |
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() |