diff options
| author | William Boman <william@redwill.se> | 2021-05-16 20:50:02 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-05-16 20:50:02 +0200 |
| commit | 4275958654ab3ff98baf965e84c236c9c4124813 (patch) | |
| tree | 0c665bef5ddb88d7744da24524ef8893e31db0c3 | |
| parent | add texlab (#12) (diff) | |
| download | mason-4275958654ab3ff98baf965e84c236c9c4124813.tar mason-4275958654ab3ff98baf965e84c236c9c4124813.tar.gz mason-4275958654ab3ff98baf965e84c236c9c4124813.tar.bz2 mason-4275958654ab3ff98baf965e84c236c9c4124813.tar.lz mason-4275958654ab3ff98baf965e84c236c9c4124813.tar.xz mason-4275958654ab3ff98baf965e84c236c9c4124813.tar.zst mason-4275958654ab3ff98baf965e84c236c9c4124813.zip | |
remove :LspInstallAll
Currently, this instantly opens up a new buffer for each LSP server.
This is not a very cash money user experience.
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | doc/nvim-lsp-installer.txt | 5 | ||||
| -rw-r--r-- | plugin/nvim-lsp-installer.vim | 7 |
3 files changed, 0 insertions, 13 deletions
@@ -37,7 +37,6 @@ use { - `:LspInstall <language>` - installs/reinstalls a language server - `:LspUninstall <language>` - uninstalls a language server -- `:LspInstallAll` - installs all available language servers - `:LspUninstallAll` - uninstalls all language servers - `:LspPrintInstalled` - prints all installed language servers diff --git a/doc/nvim-lsp-installer.txt b/doc/nvim-lsp-installer.txt index 5a19198d..20a5e0ac 100644 --- a/doc/nvim-lsp-installer.txt +++ b/doc/nvim-lsp-installer.txt @@ -58,11 +58,6 @@ Installs a language server Uninstalls a language server. - *:LspInstallAll* -:LspInstallAll - -Installs all available language servers. - *:LspUninstallAll* :LspUninstallAll diff --git a/plugin/nvim-lsp-installer.vim b/plugin/nvim-lsp-installer.vim index 48f6a96b..0e704e35 100644 --- a/plugin/nvim-lsp-installer.vim +++ b/plugin/nvim-lsp-installer.vim @@ -20,12 +20,6 @@ function! s:LspInstall(server_name) abort call luaeval("require'nvim-lsp-installer'.install(_A)", a:server_name) endfunction -function! s:LspInstallAll() abort - for server_name in s:MapServerName(luaeval("require'nvim-lsp-installer'.get_uninstalled_servers()")) - call luaeval("require'nvim-lsp-installer'.install(_A)", server_name) - endfor -endfunction - function! s:LspUninstall(server_name) abort call luaeval("require'nvim-lsp-installer'.uninstall(_A)", a:server_name) endfunction @@ -43,7 +37,6 @@ endfunction command! -nargs=1 -complete=custom,s:LspInstallCompletion LspInstall exe s:LspInstall("<args>") command! -nargs=1 -complete=custom,s:LspUninstallCompletion LspUninstall exe s:LspUninstall("<args>") -command! LspInstallAll call s:LspInstallAll() command! LspUninstallAll call s:LspUninstallAll() command! LspPrintInstalled call s:LspPrintInstalled() |
