From 9c41d7a7a142f421626889b130b392e54b1969c7 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 23 Sep 2023 10:20:10 +0000 Subject: [PATCH] deploy: 0a1a12e778a5c6f43d95432cbeb3f41ed4ac7121 --- index.html | 9 +++++++-- options.html | 22 +++++++++++----------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index fe7fa9f..a21eab6 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ -neovim-flake Manual

neovim-flake Manual


Preface

+neovim-flake Manual

\ No newline at end of file +

Adding support for more languages, and improving support for existing ones are great places where you can contribute with a PR.

7.1. 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;
+                package = ["jdt-language-server" "-data" "~/.cache/jdtls/workspace"];
+        };
+}
\ No newline at end of file diff --git a/options.html b/options.html index f18a329..97d7ba1 100644 --- a/options.html +++ b/options.html @@ -785,7 +785,7 @@ https://www.reddit.com/r/neovim/comments/orfpcd/question_does_the_c_parser_from_ <neovim-flake/modules/languages/clang.nix>
vim.languages.clang.lsp.enable

Whether to enable Enable clang LSP support.

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/clang.nix> -
vim.languages.clang.lsp.package

clang LSP server package

Type: package

Default: <derivation ccls-0.20220729>

Declared by:

+
vim.languages.clang.lsp.package

clang LSP server package, or the command to run as a list of strings

Type: package or list of string

Default: <derivation ccls-0.20220729>

Example: "[lib.getExe pkgs.jdt-language-server \" - data \" \" ~/.cache/jdtls/workspace \"]"

Declared by:

<neovim-flake/modules/languages/clang.nix>
vim.languages.clang.lsp.opts

Options to pass to clang LSP server

Type: null or string

Default: null

Declared by:

<neovim-flake/modules/languages/clang.nix> @@ -819,7 +819,7 @@ If you are using a flutter SDK installed from a different source and encounter t <neovim-flake/modules/languages/dart/dart.nix>
vim.languages.dart.lsp.enable

Whether to enable Dart LSP support.

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/dart/dart.nix> -
vim.languages.dart.lsp.package

Dart LSP server package

Type: package

Default: <derivation dart-3.0.6>

Declared by:

+
vim.languages.dart.lsp.package

Dart LSP server package, or the command to run as a list of strings

Type: package or list of string

Default: <derivation dart-3.0.6>

Example: "[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"

Declared by:

<neovim-flake/modules/languages/dart/dart.nix>
vim.languages.dart.lsp.opts

Options to pass to Dart LSP server

Type: null or string

Default: null

Declared by:

<neovim-flake/modules/languages/dart/dart.nix> @@ -841,7 +841,7 @@ If you are using a flutter SDK installed from a different source and encounter t <neovim-flake/modules/languages/go.nix>
vim.languages.go.lsp.enable

Whether to enable Enable Go LSP support.

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/go.nix> -
vim.languages.go.lsp.package

Go LSP server package

Type: package

Default: <derivation gopls-0.12.4>

Declared by:

+
vim.languages.go.lsp.package

Go LSP server package, or the command to run as a list of strings

Type: package or list of string

Default: <derivation gopls-0.12.4>

Example: "[lib.getExe pkgs.jdt-language-server \" - data \" \" ~/.cache/jdtls/workspace \"]"

Declared by:

<neovim-flake/modules/languages/go.nix>
vim.languages.go.lsp.server

Go LSP server to use

Type: value "gopls" (singular enum)

Default: "gopls"

Declared by:

<neovim-flake/modules/languages/go.nix> @@ -861,7 +861,7 @@ If you are using a flutter SDK installed from a different source and encounter t <neovim-flake/modules/languages/java.nix>
vim.languages.java.lsp.enable

Whether to enable Java LSP support (java-language-server).

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/java.nix> -
vim.languages.java.lsp.package

java language server

Type: package

Default: <derivation jdt-language-server-1.21.0>

Declared by:

+
vim.languages.java.lsp.package

java language server package, or the command to run as a list of strings

Type: package or list of string

Default: <derivation jdt-language-server-1.21.0>

Example: "[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"

Declared by:

<neovim-flake/modules/languages/java.nix>
vim.languages.java.treesitter.enable

Whether to enable Enable Java treesitter.

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/java.nix> @@ -894,7 +894,7 @@ If you are using a flutter SDK installed from a different source and encounter t <neovim-flake/modules/languages/nix.nix>
vim.languages.nix.lsp.enable

Whether to enable Enable Nix LSP support.

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/nix.nix> -
vim.languages.nix.lsp.package

Nix LSP server package

Type: package

Default: <derivation nil-2023-05-09>

Declared by:

+
vim.languages.nix.lsp.package

Nix LSP server package, or the command to run as a list of strings

Type: package or list of string

Default: <derivation nil-2023-05-09>

Example: "[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"

Declared by:

<neovim-flake/modules/languages/nix.nix>
vim.languages.nix.lsp.server

Nix LSP server to use

Type: string

Default: "nil"

Declared by:

<neovim-flake/modules/languages/nix.nix> @@ -919,7 +919,7 @@ This is a python package with debugpy installed, see https://nixos.wiki/wiki/Pyt <neovim-flake/modules/languages/python.nix>
vim.languages.python.lsp.enable

Whether to enable Enable Python LSP support.

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/python.nix> -
vim.languages.python.lsp.package

python LSP server package

Type: package

Default: <derivation pyright-1.1.318>

Declared by:

+
vim.languages.python.lsp.package

python LSP server package, or the command to run as a list of strings

Type: package or list of Concatenated string

Default: <derivation pyright-1.1.318>

Example: "[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"

Declared by:

<neovim-flake/modules/languages/python.nix>
vim.languages.python.lsp.server

Python LSP server to use

Type: value "pyright" (singular enum)

Default: "pyright"

Declared by:

<neovim-flake/modules/languages/python.nix> @@ -939,7 +939,7 @@ This is a python package with debugpy installed, see https://nixos.wiki/wiki/Pyt <neovim-flake/modules/languages/rust.nix>
vim.languages.rust.lsp.enable

Whether to enable Rust LSP support (rust-analyzer with extra tools).

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/rust.nix> -
vim.languages.rust.lsp.package

rust-analyzer package

Type: package

Default: <derivation rust-analyzer-2023-07-17>

Declared by:

+
vim.languages.rust.lsp.package

rust-analyzer package, or the command to run as a list of strings

Type: package or list of string

Default: <derivation rust-analyzer-2023-07-17>

Example: "[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"

Declared by:

<neovim-flake/modules/languages/rust.nix>
vim.languages.rust.lsp.opts

Options to pass to rust analyzer

Type: string

Default: ""

Declared by:

<neovim-flake/modules/languages/rust.nix> @@ -965,7 +965,7 @@ This is a python package with debugpy installed, see https://nixos.wiki/wiki/Pyt <neovim-flake/modules/languages/sql.nix>
vim.languages.sql.lsp.enable

Whether to enable Enable SQL LSP support.

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/sql.nix> -
vim.languages.sql.lsp.package

SQL LSP server package

Type: package

Default: <derivation sqls-0.2.22>

Declared by:

+
vim.languages.sql.lsp.package

SQL LSP server package, or the command to run as a list of strings

Type: package or list of string

Default: <derivation sqls-0.2.22>

Example: "[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"

Declared by:

<neovim-flake/modules/languages/sql.nix>
vim.languages.sql.lsp.server

SQL LSP server to use

Type: value "sqls" (singular enum)

Default: "sqls"

Declared by:

<neovim-flake/modules/languages/sql.nix> @@ -989,7 +989,7 @@ This is a python package with debugpy installed, see https://nixos.wiki/wiki/Pyt <neovim-flake/modules/languages/svelte.nix>
vim.languages.svelte.lsp.enable

Whether to enable Enable Svelte LSP support.

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/svelte.nix> -
vim.languages.svelte.lsp.package

Svelte LSP server package

Type: package

Default: <derivation svelte-language-server-0.15.16>

Declared by:

+
vim.languages.svelte.lsp.package

Svelte LSP server package, or the command to run as a list of strings

Type: package or list of string

Default: <derivation svelte-language-server-0.15.16>

Example: "[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"

Declared by:

<neovim-flake/modules/languages/svelte.nix>
vim.languages.svelte.lsp.server

Svelte LSP server to use

Type: value "svelte" (singular enum)

Default: "svelte"

Declared by:

<neovim-flake/modules/languages/svelte.nix> @@ -1013,7 +1013,7 @@ This is a python package with debugpy installed, see https://nixos.wiki/wiki/Pyt <neovim-flake/modules/languages/ts.nix>
vim.languages.ts.lsp.enable

Whether to enable Enable Typescript/Javascript LSP support.

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/ts.nix> -
vim.languages.ts.lsp.package

Typescript/Javascript LSP server package

Type: package

Default: <derivation typescript-language-server-3.3.2>

Declared by:

+
vim.languages.ts.lsp.package

Typescript/Javascript LSP server package, or the command to run as a list of strings

Type: package or list of string

Default: <derivation typescript-language-server-3.3.2>

Example: "[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"

Declared by:

<neovim-flake/modules/languages/ts.nix>
vim.languages.ts.lsp.server

Typescript/Javascript LSP server to use

Type: one of "denols", "tsserver"

Default: "tsserver"

Declared by:

<neovim-flake/modules/languages/ts.nix> @@ -1027,7 +1027,7 @@ This is a python package with debugpy installed, see https://nixos.wiki/wiki/Pyt <neovim-flake/modules/languages/zig.nix>
vim.languages.zig.lsp.enable

Whether to enable Zig LSP support (zls).

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/zig.nix> -
vim.languages.zig.lsp.package

ZLS package

Type: package

Default: <derivation zls-0.10.0>

Declared by:

+
vim.languages.zig.lsp.package

ZLS package, or the command to run as a list of strings

Type: package or list of string

Default: <derivation zls-0.10.0>

Example: "[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"

Declared by:

<neovim-flake/modules/languages/zig.nix>
vim.languages.zig.lsp.zigPackage

Zig package used by ZLS

Type: package

Default: <derivation zig-0.10.1>

Declared by:

<neovim-flake/modules/languages/zig.nix>