diff options
Diffstat (limited to 'plugin/nvim_lsp.vim')
| -rw-r--r-- | plugin/nvim_lsp.vim | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/plugin/nvim_lsp.vim b/plugin/nvim_lsp.vim index bffab637..246eada0 100644 --- a/plugin/nvim_lsp.vim +++ b/plugin/nvim_lsp.vim @@ -1,11 +1,9 @@ -function! s:complete_server_names(A,L,P) abort - return luaeval("table.concat(require'nvim_lsp'.available_servers(), '\\n')") -endfunction - -function! s:complete_installable_server_names(A,L,P) abort - return luaeval("table.concat(require'nvim_lsp'.installable_servers(), '\\n')") -endfunction - lua << EOF +lsp_complete_installable_servers = function() + return table.concat(require'nvim_lsp'.available_servers(), '\n') +end +lsp_complete_servers = function() + return table.concat(require'nvim_lsp'.installable_servers(), '\n') +end require'nvim_lsp'._root._setup() EOF |
