flake: provide lsp and diagnostic helpers in default shell

This commit is contained in:
raf 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

View file

@ -38,12 +38,19 @@
}; };
perSystem = { perSystem = {
self',
config, config,
pkgs, pkgs,
... ...
}: { }: {
devShells.default = pkgs.mkShell {nativeBuildInputs = [config.packages.nix];};
formatter = pkgs.alejandra; 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];
};
};
}; };
}; };