added lsp to dev

This commit is contained in:
Sven Vogel 2023-12-15 20:53:37 +01:00
parent 4d39e01214
commit d037c58394
4 changed files with 24 additions and 13 deletions

View File

@ -3,9 +3,7 @@ let
settings = import ./../settings.nix; settings = import ./../settings.nix;
in in
{ {
imports = [ imports = lib.optionals settings.dev.lsp.enable [ ./lsp.nix ]
./language-server.nix
]
++ lib.optionals settings.virtualisation.docker-rootless.enable [ ./docker-rootless.nix ] ++ lib.optionals settings.virtualisation.docker-rootless.enable [ ./docker-rootless.nix ]
++ lib.optionals settings.virtualisation.qemu.enable [ ./qemu.nix ] ++ lib.optionals settings.virtualisation.qemu.enable [ ./qemu.nix ]
++ lib.optionals settings.dev.platformio [ ./platformio.nix ] ++ lib.optionals settings.dev.platformio [ ./platformio.nix ]

View File

@ -1,10 +0,0 @@
{ pkgs, config, ... }: {
# various language server used by IDEs and by my Neovim config
environment.systemPackages = with pkgs; [
shellcheck
lua-language-server
pyright
arduino-language-server
clang
];
}

13
dev/lsp.nix Normal file
View File

@ -0,0 +1,13 @@
{ pkgs, lib, ... }:
let
settings = import ./../settings.nix;
in
{
# various language server used by IDEs and by Neovim lsp-config
environment.systemPackages = with pkgs;
lib.optionals settings.dev.lsp.shellcheck [ shellcheck ]
++ lib.optionals settings.dev.lsp.luals [ lua-language-server ]
++ lib.optionals settings.dev.lsp.pyright[ pyright ]
++ lib.optionals settings.dev.lsp.arduino [ arduino-language-server ]
++ lib.optionals settings.dev.lsp.clangd [ clang ];
}

View File

@ -28,6 +28,16 @@ with import <nixpkgs> {}; {
platformio = true; platformio = true;
latex = true; latex = true;
dotnet = false; dotnet = false;
lsp = {
enable = true;
# various language server
shellcheck = true;
luals = true;
pyright = true;
arduino = true;
clangd = true;
};
}; };
dvd = true; # enable DVD decryption + ripping via Handbrake dvd = true; # enable DVD decryption + ripping via Handbrake