1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:40:06 +08:00
SpaceVim/bundle/nvim-lspconfig/plugin/lspconfig.vim

19 lines
425 B
VimL
Raw Normal View History

2021-10-05 15:13:10 +08:00
if exists('g:lspconfig')
finish
endif
let g:lspconfig = 1
lua << EOF
lsp_complete_configured_servers = function()
return table.concat(require'lspconfig'.available_servers(), '\n')
end
lsp_get_active_client_ids = function()
client_ids = {}
for idx, client in ipairs(vim.lsp.get_active_clients()) do
table.insert(client_ids, tostring(client.id))
end
return client_ids
end
require'lspconfig'._root._setup()
EOF