mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 05:40:44 +00:00
doc: add custom LSP command doc to manual
This commit is contained in:
parent
7d8cc1ec20
commit
cd778b6ddc
1 changed files with 15 additions and 0 deletions
|
@ -18,3 +18,18 @@ Language specific support means there is a combination of language specific plug
|
||||||
|
|
||||||
Adding support for more languages, and improving support for existing ones are great places where you can contribute with a PR.
|
Adding support for more languages, and improving support for existing ones are great places where you can contribute with a PR.
|
||||||
|
|
||||||
|
=== LSP Custom Packages/Command
|
||||||
|
|
||||||
|
In any of the `opt.languages.<language>.lsp.package` options you can provide your own LSP package, or provide the command to launch the language server, as a list of strings.
|
||||||
|
|
||||||
|
You can use this to skip automatic installation of a language server, and instead use the one found in your `$PATH` during runtime, for example:
|
||||||
|
|
||||||
|
[source,nix]
|
||||||
|
----
|
||||||
|
vim.languages.java = {
|
||||||
|
lsp = {
|
||||||
|
enable = true;
|
||||||
|
package = ["jdt-language-server" "-data" "~/.cache/jdtls/workspace"];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
Loading…
Reference in a new issue