flake: provide lsp and diagnostic helpers in default shell

This commit is contained in:
NotAShelf 2023-11-07 14:27:18 +03:00
parent b4972956a2
commit 4700a988b3
No known key found for this signature in database
GPG Key ID: 02D1DD3FA08B6B29
1 changed files with 8 additions and 1 deletions

View File

@ -38,12 +38,19 @@
};
perSystem = {
self',
config,
pkgs,
...
}: {
devShells.default = pkgs.mkShell {nativeBuildInputs = [config.packages.nix];};
formatter = pkgs.alejandra;
devShells = {
default = self'.devShells.lsp;
nvim-nix = pkgs.mkShell {nativeBuildInputs = [config.packages.nix];};
lsp = pkgs.mkShell {
nativeBuildInputs = with pkgs; [nil statix deadnix];
};
};
};
};