diff options
| author | William Boman <william@redwill.se> | 2021-10-26 09:47:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-26 09:47:20 +0200 |
| commit | c7ef12d8f99490c984ec171c7341577513b435a8 (patch) | |
| tree | aea6fa17846dbc45c832fa28da1025ef03861d31 /doc | |
| parent | mac's not fun (diff) | |
| download | mason-c7ef12d8f99490c984ec171c7341577513b435a8.tar mason-c7ef12d8f99490c984ec171c7341577513b435a8.tar.gz mason-c7ef12d8f99490c984ec171c7341577513b435a8.tar.bz2 mason-c7ef12d8f99490c984ec171c7341577513b435a8.tar.lz mason-c7ef12d8f99490c984ec171c7341577513b435a8.tar.xz mason-c7ef12d8f99490c984ec171c7341577513b435a8.tar.zst mason-c7ef12d8f99490c984ec171c7341577513b435a8.zip | |
add synchronous variants of commands for better headless interop (#189)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/nvim-lsp-installer.txt | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/doc/nvim-lsp-installer.txt b/doc/nvim-lsp-installer.txt index f333e456..11771981 100644 --- a/doc/nvim-lsp-installer.txt +++ b/doc/nvim-lsp-installer.txt @@ -98,19 +98,30 @@ COMMANDS *nvim-lsp-installer-commands* Opens the UI for nvim-lsp-installer. *:LspInstall* -:LspInstall {server_name} ... +:LspInstall [--sync] {server_name} ... -Installs language servers. +Installs language servers. If the `--sync` argument is passed, the command will +be blocking until all installations complete. This is useful for headless +installations, for example: > + $ nvim --headless -c "LspInstall --sync rust_analyzer clangd clojure_lsp" -c q + +< *:LspUninstall* -:LspUninstall {server_name} ... +:LspUninstall [--sync] {server_name} ... -Uninstalls language servers. +Uninstalls language servers. If the `--sync` argument is passed, the command will +be blocking until all installations complete. This is useful for headless +installations, for example: > + + $ nvim --headless -c "LspUninstall --sync rust_analyzer clangd clojure_lsp" -c q +< *:LspUninstallAll* -:LspUninstallAll +:LspUninstallAll [--no-confirm] -Uninstalls all installed language servers. +Uninstalls all installed language servers. If the --no-confirm argument is +passed, there will be no confirmation prompt before uninstalling all servers. *:LspInstallLog* :LspInstallLog |
