File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
nvim/.config/nvim/lua/lsp Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -109,22 +109,18 @@ M.SERVER_CONFIGURATIONS = {
109
109
}
110
110
111
111
M .setup = function ()
112
- local lsp_handlers = require (" lsp.handlers" )
113
- local default_setup_config = { capabilities = vim .lsp .protocol .make_client_capabilities () }
114
-
115
112
for name , config in pairs (M .SERVER_CONFIGURATIONS ) do
116
113
local custom_setup_config = {}
117
114
if type (config ) == " function" then
118
115
custom_setup_config = config ()
119
116
elseif type (config ) == " table" then
120
117
custom_setup_config = config
121
118
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 )
124
120
vim .lsp .enable (name )
125
121
end
126
122
127
- lsp_handlers .setup ()
123
+ require ( " lsp.handlers " ) .setup ()
128
124
end
129
125
130
126
return M
You can’t perform that action at this time.
0 commit comments