nvf/docs/manual/configuring/languages/lsp.md
NotAShelf a196e9610f
docs: format via deno fmt
This should be a pre-commit hook in the future.
2024-11-25 19:16:46 +03:00

623 B

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:

vim.languages.java = {
  lsp = {
    enable = true;
    # this expects jdt-language-server to be in your PATH
    # or in `vim.extraPackages`
    package = ["jdt-language-server" "-data" "~/.cache/jdtls/workspace"];
  };
}