From 1856032725a23132c5736e4050ba9ab4266535cc Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 8 Dec 2019 00:47:10 -0800 Subject: :LspInstall : set complete fn to Lua fn The sid() hack didn't work on my system, and we can reference Lua global functions meanwhile. --- plugin/nvim_lsp.vim | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'plugin') 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 -- cgit v1.2.3-70-g09d2