aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-04-04 18:33:40 +0200
committerGitHub <noreply@github.com>2021-04-04 18:33:40 +0200
commit98cf5f41c9a925a92363d94a48776514510a83ff (patch)
tree9a9e7dbd03ea2ef6c0b003335fc3d0bbac9b791d /plugin
parentinit (diff)
downloadmason-98cf5f41c9a925a92363d94a48776514510a83ff.tar
mason-98cf5f41c9a925a92363d94a48776514510a83ff.tar.gz
mason-98cf5f41c9a925a92363d94a48776514510a83ff.tar.bz2
mason-98cf5f41c9a925a92363d94a48776514510a83ff.tar.lz
mason-98cf5f41c9a925a92363d94a48776514510a83ff.tar.xz
mason-98cf5f41c9a925a92363d94a48776514510a83ff.tar.zst
mason-98cf5f41c9a925a92363d94a48776514510a83ff.zip
update README and change get_installed_servers() return value (#1)
Diffstat (limited to 'plugin')
-rw-r--r--plugin/nvim-lsp-installer.vim6
1 files changed, 4 insertions, 2 deletions
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("<args>")