aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-12-08 00:47:10 -0800
committerJustin M. Keyes <justinkz@gmail.com>2019-12-08 00:47:37 -0800
commit1856032725a23132c5736e4050ba9ab4266535cc (patch)
tree6da83be1b26c9b0b4be70c029db78f22fb2c3ae7 /plugin
parent[docgen] Update README.md (diff)
downloadnvim-lspconfig-1856032725a23132c5736e4050ba9ab4266535cc.tar
nvim-lspconfig-1856032725a23132c5736e4050ba9ab4266535cc.tar.gz
nvim-lspconfig-1856032725a23132c5736e4050ba9ab4266535cc.tar.bz2
nvim-lspconfig-1856032725a23132c5736e4050ba9ab4266535cc.tar.lz
nvim-lspconfig-1856032725a23132c5736e4050ba9ab4266535cc.tar.xz
nvim-lspconfig-1856032725a23132c5736e4050ba9ab4266535cc.tar.zst
nvim-lspconfig-1856032725a23132c5736e4050ba9ab4266535cc.zip
:LspInstall : set complete fn to Lua fn
The sid() hack didn't work on my system, and we can reference Lua global functions meanwhile.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/nvim_lsp.vim14
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