Skip to content

Commit e917ad0

Browse files
Use neovim v0.11 lsp capabilities
- nvim-lua/kickstart.nvim#1475
1 parent 76e20db commit e917ad0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

nvim/.config/nvim/init.lua

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -793,18 +793,14 @@ require('lazy').setup({
793793
automatic_installation = false,
794794
handlers = {
795795
function(server_name)
796-
local server = servers[server_name] or {}
797-
-- This handles overriding only values explicitly passed
798-
-- by the server configuration above. Useful when disabling
799-
-- certain features of an LSP (for example, turning off formatting for ts_ls)
800-
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
801-
require('lspconfig')[server_name].setup(server)
796+
local config = servers[server_name] or {}
797+
vim.lsp.config(server_name, config)
798+
vim.lsp.enable(server_name)
802799
end,
803800
},
804801
}
805802
end,
806803
},
807-
808804
{ -- Autoformat
809805
'stevearc/conform.nvim',
810806
event = { 'BufWritePre' },

0 commit comments

Comments
 (0)