Skip to content

Commit

Permalink
flake: provide lsp and diagnostic helpers in default shell
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAShelf committed Nov 7, 2023
1 parent b497295 commit 4700a98
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};
};
};
};

Expand Down

0 comments on commit 4700a98

Please sign in to comment.