2023-12-09 19:03:58 +00:00
|
|
|
# LSP Custom Packages/Command {#sec-languages-custom-lsp-packages}
|
|
|
|
|
2024-04-27 12:44:37 +00:00
|
|
|
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:
|
2023-12-09 19:03:58 +00:00
|
|
|
|
|
|
|
```nix
|
|
|
|
vim.languages.java = {
|
|
|
|
lsp = {
|
|
|
|
enable = true;
|
2024-04-27 12:44:37 +00:00
|
|
|
# this expects jdt-language-server to be in your PATH
|
|
|
|
# or in `vim.extraPackages`
|
2023-12-09 19:03:58 +00:00
|
|
|
package = ["jdt-language-server" "-data" "~/.cache/jdtls/workspace"];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
```
|