added lsp to dev
This commit is contained in:
parent
4d39e01214
commit
d037c58394
|
@ -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 ]
|
||||||
|
|
|
@ -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
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -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 ];
|
||||||
|
}
|
10
settings.nix
10
settings.nix
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue