diff options
| author | William Boman <william@redwill.se> | 2021-12-13 07:54:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-13 07:54:47 +0100 |
| commit | d7b10b13d72d4bf8f7b34779ddc3514bcc26b0f2 (patch) | |
| tree | 0c697a373655d0e5fd2907ff5787942001c86cf2 /doc | |
| parent | .github: update new server request template (diff) | |
| download | mason-d7b10b13d72d4bf8f7b34779ddc3514bcc26b0f2.tar mason-d7b10b13d72d4bf8f7b34779ddc3514bcc26b0f2.tar.gz mason-d7b10b13d72d4bf8f7b34779ddc3514bcc26b0f2.tar.bz2 mason-d7b10b13d72d4bf8f7b34779ddc3514bcc26b0f2.tar.lz mason-d7b10b13d72d4bf8f7b34779ddc3514bcc26b0f2.tar.xz mason-d7b10b13d72d4bf8f7b34779ddc3514bcc26b0f2.tar.zst mason-d7b10b13d72d4bf8f7b34779ddc3514bcc26b0f2.zip | |
feat: allow server installation by just typing `:LspInstall` (#331)
This will prompt the user which server associated with the currently opened
buffer's &filetype to install.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/nvim-lsp-installer.txt | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/nvim-lsp-installer.txt b/doc/nvim-lsp-installer.txt index 5a9794a7..14703df6 100644 --- a/doc/nvim-lsp-installer.txt +++ b/doc/nvim-lsp-installer.txt @@ -79,6 +79,12 @@ of the server name, like so: > :LspInstall tsserver@0.6.3 graphql@latest rust_analyzer@nightly < +To install a server associated with the filetype of the currently opened +buffer, simply just run: > + + :LspInstall +< + Please refer to each server's own release page to find which versions are available. @@ -130,15 +136,20 @@ COMMANDS *nvim-lsp-installer-commands* Opens the UI for nvim-lsp-installer. *:LspInstall* -:LspInstall [--sync] {server_name} ... +:LspInstall [--sync] [server_name] ... 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 - < + +If no server names are provided (`:LspInstall`), you will be prompted to +select which server associated with the currently opened buffer's filetype you +want to install. If none are associated, an error message will be printed +instead. + *:LspUninstall* :LspUninstall [--sync] {server_name} ... |
