aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/lspconfig.vim
blob: a9e947c60e89a79ba40c8622cd4e07e074f0d071 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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