From cd778b6ddc43d8f6e01ede2514b14003bb256edb Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sat, 23 Sep 2023 02:42:26 +0200 Subject: [PATCH] doc: add custom LSP command doc to manual --- docs/manual/languages.adoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/manual/languages.adoc b/docs/manual/languages.adoc index edc70e70..e6c9cbe0 100644 --- a/docs/manual/languages.adoc +++ b/docs/manual/languages.adoc @@ -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. +=== LSP Custom Packages/Command + +In any of the `opt.languages..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"]; + }; +} +----