mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 09:40:04 +08:00
fix(lsp): type error when loading lsp config (#4701)
This commit is contained in:
parent
85dc5fa8ca
commit
9aa3de5561
@ -102,13 +102,15 @@ 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
|
||||||
nvim_lsp[client].setup {
|
if type(client) == "string" then
|
||||||
cmd = override_cmd,
|
nvim_lsp[client].setup {
|
||||||
on_attach = on_attach,
|
cmd = override_cmd,
|
||||||
flags = {
|
on_attach = on_attach,
|
||||||
debounce_text_changes = 150,
|
flags = {
|
||||||
|
debounce_text_changes = 150,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
end
|
||||||
end
|
end
|
||||||
EOF
|
EOF
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user