diff options
| author | William Boman <william@redwill.se> | 2021-12-04 19:55:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-04 19:55:07 +0100 |
| commit | 824c6941604fa8a7a4fe56fefcf36b46698314ee (patch) | |
| tree | ecfded4285af29e615c7e3afd1678f20edb3bc9f /doc | |
| parent | fix(angularls): also use new_root_dir for probe locations (#302) (diff) | |
| download | mason-824c6941604fa8a7a4fe56fefcf36b46698314ee.tar mason-824c6941604fa8a7a4fe56fefcf36b46698314ee.tar.gz mason-824c6941604fa8a7a4fe56fefcf36b46698314ee.tar.bz2 mason-824c6941604fa8a7a4fe56fefcf36b46698314ee.tar.lz mason-824c6941604fa8a7a4fe56fefcf36b46698314ee.tar.xz mason-824c6941604fa8a7a4fe56fefcf36b46698314ee.tar.zst mason-824c6941604fa8a7a4fe56fefcf36b46698314ee.zip | |
docs: clarify how servers are installed and the recommended setup (#306)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/nvim-lsp-installer.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/nvim-lsp-installer.txt b/doc/nvim-lsp-installer.txt index e8666391..5a9794a7 100644 --- a/doc/nvim-lsp-installer.txt +++ b/doc/nvim-lsp-installer.txt @@ -42,6 +42,22 @@ https://github.com/williamboman/nvim-lsp-installer/blob/main/CUSTOM_SERVERS.md. ============================================================================== QUICK START *nvim-lsp-installer-quickstart* +nvim-lsp-installer installs server executables in a local directory that +doesn't exist on PATH. In order for the neovim LSP client to be able to locate +these executables, the full path to the executable needs to be provided when +setting up a server. In lspconfig, this is provided via the `cmd` property in +the table provided to the `.setup()` function, for example: > + + lspconfig.sumneko_lua.setup { cmd = { "/path/to/lua-server" } } +< + +The recommended way of setting up your installed servers is to do it directly +through nvim-lsp-installer. By doing so, nvim-lsp-installer will make sure to +inject any necessary properties before calling lspconfig's setup function for +you. You may find a minimal example below. To see how you can override the +default settings for a server, refer to the Wiki: +https://github.com/williamboman/nvim-lsp-installer/wiki/Advanced-Configuration#overriding-the-default-lsp-server-options. + To view the UI for nvim-lsp-installer, run: > :LspInstallInfo |
