16 lines
416 B
VimL
16 lines
416 B
VimL
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()
|
|
return vim.tbl_map(function(client)
|
|
return ("%d (%s)"):format(client.id, client.name)
|
|
end, require'lspconfig.util'.get_managed_clients())
|
|
end
|
|
require'lspconfig'._root._setup()
|
|
EOF
|