From 98cf5f41c9a925a92363d94a48776514510a83ff Mon Sep 17 00:00:00 2001 From: William Boman Date: Sun, 4 Apr 2021 18:33:40 +0200 Subject: update README and change get_installed_servers() return value (#1) --- plugin/nvim-lsp-installer.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/nvim-lsp-installer.vim b/plugin/nvim-lsp-installer.vim index a4caf2b1..34277863 100644 --- a/plugin/nvim-lsp-installer.vim +++ b/plugin/nvim-lsp-installer.vim @@ -9,7 +9,9 @@ function! s:LspInstallCompletion(...) abort endfunction function! s:LspUninstallCompletion(...) abort - return join(luaeval("require'nvim-lsp-installer'.get_installed_servers()"), "\n") + return join( + \ map(luaeval("require'nvim-lsp-installer'.get_installed_servers()"), {_, val -> val.name}), + \ "\n") endfunction function! s:LspInstall(server) abort @@ -33,7 +35,7 @@ function! s:LspUninstallAll() abort endfunction function! s:LspPrintInstalled() abort - echo luaeval("require'nvim-lsp-installer'.get_installed_servers()") + echo map(luaeval("require'nvim-lsp-installer'.get_installed_servers()"), {_, val -> val.name}) endfunction command! -nargs=1 -complete=custom,s:LspInstallCompletion LspInstall exe s:LspInstall("") -- cgit v1.2.3-70-g09d2