plugins/nvim-lsp/language-servers: re-order LS list by alphabetical order (#194)

This commit is contained in:
Gaétan Lepage 2023-02-25 16:32:55 +01:00 committed by GitHub
parent 401f6fb572
commit b7e810638a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,6 +151,12 @@ with lib; let
name = "gopls"; name = "gopls";
description = "Enable gopls, for Go."; description = "Enable gopls, for Go.";
} }
{
name = "hls";
description = "Enable haskell language server";
package = pkgs.haskell-language-server;
cmd = cfg: ["haskell-language-server-wrapper"];
}
{ {
name = "html"; name = "html";
description = "Enable html, for HTML"; description = "Enable html, for HTML";
@ -163,64 +169,6 @@ with lib; let
package = pkgs.nodePackages.vscode-langservers-extracted; package = pkgs.nodePackages.vscode-langservers-extracted;
cmd = cfg: ["${cfg.package}/bin/vscode-json-language-server" "--stdio"]; cmd = cfg: ["${cfg.package}/bin/vscode-json-language-server" "--stdio"];
} }
{
name = "nil_ls";
description = "Enable nil, for Nix";
package = pkgs.nil;
settingsOptions = {
formatting.command = mkOption {
type = types.nullOr (types.listOf types.str);
default = null;
description = ''
External formatter command (with arguments).
It should accepts file content in stdin and print the formatted code into stdout.
'';
};
diagnostics = {
ignored = mkOption {
type = types.listOf types.str;
default = [];
description = ''
Ignored diagnostic kinds.
The kind identifier is a snake_cased_string usually shown together
with the diagnostic message.
'';
};
excludedFiles = mkOption {
type = types.listOf types.str;
default = [];
description = ''
Files to exclude from showing diagnostics. Useful for generated files.
It accepts an array of paths. Relative paths are joint to the workspace root.
Glob patterns are currently not supported.
'';
};
};
};
settings = cfg: {nil = {inherit (cfg) formatting diagnostics;};};
}
{
name = "pylsp";
description = "Enable pylsp, for Python.";
package = pkgs.python3Packages.python-lsp-server;
}
{
name = "pyright";
description = "Enable pyright, for Python.";
}
{
name = "rnix-lsp";
description = "Enable rnix LSP, for Nix";
serverName = "rnix";
}
{
name = "rust-analyzer";
description = "Enable rust-analyzer, for Rust.";
serverName = "rust_analyzer";
settingsOptions = import ./rust-analyzer-config.nix lib;
settings = cfg: {rust-analyzer = cfg;};
}
{ {
name = "lua-ls"; name = "lua-ls";
description = "Enable lua LS, for lua"; description = "Enable lua LS, for lua";
@ -279,6 +227,64 @@ with lib; let
}; };
settings = cfg: {Lua = cfg;}; settings = cfg: {Lua = cfg;};
} }
{
name = "nil_ls";
description = "Enable nil, for Nix";
package = pkgs.nil;
settingsOptions = {
formatting.command = mkOption {
type = types.nullOr (types.listOf types.str);
default = null;
description = ''
External formatter command (with arguments).
It should accepts file content in stdin and print the formatted code into stdout.
'';
};
diagnostics = {
ignored = mkOption {
type = types.listOf types.str;
default = [];
description = ''
Ignored diagnostic kinds.
The kind identifier is a snake_cased_string usually shown together
with the diagnostic message.
'';
};
excludedFiles = mkOption {
type = types.listOf types.str;
default = [];
description = ''
Files to exclude from showing diagnostics. Useful for generated files.
It accepts an array of paths. Relative paths are joint to the workspace root.
Glob patterns are currently not supported.
'';
};
};
};
settings = cfg: {nil = {inherit (cfg) formatting diagnostics;};};
}
{
name = "pylsp";
description = "Enable pylsp, for Python.";
package = pkgs.python3Packages.python-lsp-server;
}
{
name = "pyright";
description = "Enable pyright, for Python.";
}
{
name = "rnix-lsp";
description = "Enable rnix LSP, for Nix";
serverName = "rnix";
}
{
name = "rust-analyzer";
description = "Enable rust-analyzer, for Rust.";
serverName = "rust_analyzer";
settingsOptions = import ./rust-analyzer-config.nix lib;
settings = cfg: {rust-analyzer = cfg;};
}
{ {
name = "tailwindcss"; name = "tailwindcss";
description = "Enable tailwindcss language server, for tailwindcss"; description = "Enable tailwindcss language server, for tailwindcss";
@ -302,12 +308,6 @@ with lib; let
name = "zls"; name = "zls";
description = "Enable zls, for Zig."; description = "Enable zls, for Zig.";
} }
{
name = "hls";
description = "Enable haskell language server";
package = pkgs.haskell-language-server;
cmd = cfg: ["haskell-language-server-wrapper"];
}
]; ];
in { in {
imports = imports =