aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/nvim-lsp-installer.vim
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-10-18 14:00:48 +0200
committerWilliam Boman <william@redwill.se>2021-10-18 14:00:52 +0200
commiteca5c9ba4a389fa7fefdd8a4d1f3ff9bf29bd7b7 (patch)
tree8d7df797c5034916a16ad672d54118e8faec8420 /plugin/nvim-lsp-installer.vim
parentspeed up :LspInstall, :LspUninstall, :LspUninstallAll commands (#175) (diff)
downloadmason-eca5c9ba4a389fa7fefdd8a4d1f3ff9bf29bd7b7.tar
mason-eca5c9ba4a389fa7fefdd8a4d1f3ff9bf29bd7b7.tar.gz
mason-eca5c9ba4a389fa7fefdd8a4d1f3ff9bf29bd7b7.tar.bz2
mason-eca5c9ba4a389fa7fefdd8a4d1f3ff9bf29bd7b7.tar.lz
mason-eca5c9ba4a389fa7fefdd8a4d1f3ff9bf29bd7b7.tar.xz
mason-eca5c9ba4a389fa7fefdd8a4d1f3ff9bf29bd7b7.tar.zst
mason-eca5c9ba4a389fa7fefdd8a4d1f3ff9bf29bd7b7.zip
sort :LspInstall, :LspUninstall completion items
Diffstat (limited to 'plugin/nvim-lsp-installer.vim')
-rw-r--r--plugin/nvim-lsp-installer.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/nvim-lsp-installer.vim b/plugin/nvim-lsp-installer.vim
index 3050d865..6e23e64b 100644
--- a/plugin/nvim-lsp-installer.vim
+++ b/plugin/nvim-lsp-installer.vim
@@ -5,11 +5,11 @@ let s:save_cpo = &cpo
set cpo&vim
function! s:LspInstallCompletion(...) abort
- return join(luaeval("require'nvim-lsp-installer.servers'.get_available_server_names()"), "\n")
+ return join(sort(luaeval("require'nvim-lsp-installer.servers'.get_available_server_names()")), "\n")
endfunction
function! s:LspUninstallCompletion(...) abort
- return join(luaeval("require'nvim-lsp-installer.servers'.get_installed_server_names()"), "\n")
+ return join(sort(luaeval("require'nvim-lsp-installer.servers'.get_installed_server_names()")), "\n")
endfunction
function! s:LspInstall(server_names) abort