Merge pull request #134 from horriblename/optional-lsp-installation

This commit is contained in:
raf 2023-09-23 13:19:14 +03:00 committed by GitHub
commit 0a1a12e778
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 117 additions and 37 deletions

View file

@ -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.<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"];
};
}
----

View file

@ -14,6 +14,8 @@ https://github.com/horriblename[horriblename]:
* Streamlined and simplified extra plugin API with the addition of <<opt-vim.extraPlugins>>
* Allow using command names in place of LSP packages to avoid automatic installation.
https://github.com/amanse[amanse]:
* Added daily notes options for obsidian plugin.