mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
* nvim-lsp: refactor of basic language servers * nvim-lsp: added html, css, json and eslint language servers * nvim-lsp: added gdscript lsp * nvim-lsp: added vuels
66 lines
1.6 KiB
Nix
66 lines
1.6 KiB
Nix
{ pkgs, config, lib, ... }@args:
|
|
let
|
|
helpers = import ./helpers.nix args;
|
|
servers = [
|
|
{
|
|
name = "clangd";
|
|
description = "Enable clangd LSP, for C/C++.";
|
|
packages = [ pkgs.clang-tools ];
|
|
}
|
|
{
|
|
name = "cssls";
|
|
description = "Enable cssls, for CSS";
|
|
packages = [ pkgs.nodePackages.vscode-langservers-extracted ];
|
|
}
|
|
{
|
|
name = "eslint";
|
|
description = "Enable eslint";
|
|
packages = [ pkgs.nodePackages.vscode-langservers-extracted ];
|
|
}
|
|
{
|
|
name = "gdscript";
|
|
description = "Enable gdscript, for Godot";
|
|
packages = [];
|
|
}
|
|
{
|
|
name = "gopls";
|
|
description = "Enable gopls, for Go.";
|
|
}
|
|
{
|
|
name = "html";
|
|
description = "Enable html, for HTML";
|
|
packages = [ pkgs.nodePackages.vscode-langservers-extracted ];
|
|
}
|
|
{
|
|
name = "jsonls";
|
|
description = "Enable jsonls, for JSON";
|
|
packages = [ pkgs.nodePackages.vscode-langservers-extracted ];
|
|
}
|
|
{
|
|
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";
|
|
}
|
|
{
|
|
name = "vuels";
|
|
description = "Enable vuels, for Vue";
|
|
packages = [ pkgs.nodePackages.vue-language-server ];
|
|
}
|
|
{
|
|
name = "zls";
|
|
description = "Enable zls, for Zig.";
|
|
}
|
|
];
|
|
in
|
|
{
|
|
imports = lib.lists.map (helpers.mkLsp) servers;
|
|
}
|