feat(lsp): reimplement automatic installation of language servers

This commit is contained in:
2024-02-27 17:20:51 +01:00
parent 68bf1acad0
commit db9888963a
15 changed files with 194 additions and 173 deletions
+10 -4
View File
@@ -63,7 +63,11 @@ when needed.
### Language servers
Language servers are installed automatically to the nvim data directory
(`:echo stdpath('data') .. '/mason'`). The following are some noted requirements
(`:echo stdpath('data') .. '/mason'`) upon entering a buffer of related
filetype. Automatic installation can be turned off, see the end of this section
for instructions.
The following are some noted requirements
for the installations themselves:
- **diagnostic-languageserver**: npm
@@ -77,9 +81,11 @@ Some servers have additional runtime dependencies:
- **bash-language-server**: shellcheck (optional, used for linting)
If you don't need some specific language server, and want to get rid of any
warning messages, you may either remove them from the top of `lua/lsp.lua`
or disable them in `lua/lsp/<server>.lua`.
If you don't need some specific language server, you may either remove them from
the top of `lua/lsp.lua` or disable them in `lua/lsp/<server>.lua`.
To disable automatic installation of a selected language server, remove or
comment out the mason part of the configuration at `lua/lsp/<server>.lua`.
### Nerd Font
It's recommended to use a [Nerd Font](https://www.nerdfonts.com/),