Skip to content

Commit a150763

Browse files
committed
nvim: remove server_capabilities setup from lsp it is setup as default
1 parent 51e08f7 commit a150763

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

nvim/.config/nvim/lua/lsp/init.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,18 @@ M.SERVER_CONFIGURATIONS = {
109109
}
110110

111111
M.setup = function()
112-
local lsp_handlers = require("lsp.handlers")
113-
local default_setup_config = { capabilities = vim.lsp.protocol.make_client_capabilities() }
114-
115112
for name, config in pairs(M.SERVER_CONFIGURATIONS) do
116113
local custom_setup_config = {}
117114
if type(config) == "function" then
118115
custom_setup_config = config()
119116
elseif type(config) == "table" then
120117
custom_setup_config = config
121118
end
122-
local setup_config = vim.tbl_extend("force", default_setup_config, custom_setup_config)
123-
vim.lsp.config(name, setup_config)
119+
vim.lsp.config(name, custom_setup_config)
124120
vim.lsp.enable(name)
125121
end
126122

127-
lsp_handlers.setup()
123+
require("lsp.handlers").setup()
128124
end
129125

130126
return M

0 commit comments

Comments
 (0)