1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-13 15:48:00 +08:00

fix(lsp): type error when loading lsp config (#4701)

This commit is contained in:
Andy Zhang 2022-09-10 19:46:10 +08:00 committed by GitHub
parent 85dc5fa8ca
commit 9aa3de5561
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,7 @@ for _, lsp in ipairs(servers) do
end end
local override_client_cmds = require('spacevim').eval('s:override_client_cmds') local override_client_cmds = require('spacevim').eval('s:override_client_cmds')
for client, override_cmd in pairs(override_client_cmds) do for client, override_cmd in pairs(override_client_cmds) do
if type(client) == "string" then
nvim_lsp[client].setup { nvim_lsp[client].setup {
cmd = override_cmd, cmd = override_cmd,
on_attach = on_attach, on_attach = on_attach,
@ -109,6 +110,7 @@ for client, override_cmd in pairs(override_client_cmds) do
debounce_text_changes = 150, debounce_text_changes = 150,
} }
} }
end
end end
EOF EOF
endfunction endfunction