From eca5c9ba4a389fa7fefdd8a4d1f3ff9bf29bd7b7 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 18 Oct 2021 14:00:48 +0200 Subject: sort :LspInstall, :LspUninstall completion items --- plugin/nvim-lsp-installer.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin') 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 -- cgit v1.2.3-70-g09d2