mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 03:34:31 +02:00
Refactor language servers and add eslint, jsonls, cssls and html servers. (#28)
* 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
This commit is contained in:
parent
b1f99f2f08
commit
d40a8b99f3
9 changed files with 96 additions and 114 deletions
66
plugins/nvim-lsp/basic-servers.nix
Normal file
66
plugins/nvim-lsp/basic-servers.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{ 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue