From 788ed85039f53b30d53790af0d9a33182e6a18e8 Mon Sep 17 00:00:00 2001 From: William Boman Date: Tue, 7 Sep 2021 03:45:04 +0200 Subject: schedule batch uninstallations --- plugin/nvim-lsp-installer.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugin') diff --git a/plugin/nvim-lsp-installer.vim b/plugin/nvim-lsp-installer.vim index 1cd772ef..2e2bc315 100644 --- a/plugin/nvim-lsp-installer.vim +++ b/plugin/nvim-lsp-installer.vim @@ -30,9 +30,7 @@ function! s:LspUninstall(server_names) abort endfunction function! s:LspUninstallAll() abort - for server in s:MapServerName(luaeval("require'nvim-lsp-installer.servers'.get_installed_servers()")) - call s:LspUninstall(server) - endfor + lua require'nvim-lsp-installer'.uninstall_all() endfunction function! s:LspPrintInstalled() abort -- cgit v1.2.3-70-g09d2