feat: Set up the dev shell

This commit is contained in:
punkfairie 2024-11-29 21:22:53 -08:00
parent 573e24df9b
commit 75a8915db4
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
2 changed files with 20 additions and 6 deletions

15
Justfile Normal file
View file

@ -0,0 +1,15 @@
alias t := test
test:
git aa && nix run .
alias to := testone
testone:
git aa && nix run . -- flake.nix
alias tt := testtwo
testtwo:
git aa && nix run . -- flake.nix .stylua.toml
alias s := search
search this:
nh search {{this}}

View file

@ -51,16 +51,15 @@
shell = pkgs.mkShell { shell = pkgs.mkShell {
name = "nvim-devShell"; name = "nvim-devShell";
buildInputs = with pkgs; [ buildInputs = with pkgs; [
# Tools for Lua and Nix development, useful for editing files in this repo fish
lua-language-server just
nixd
alejandra
stylua
luajitPackages.luacheck
]; ];
shellHook = '' shellHook = ''
# symlink the .luarc.json generated in the overlay # symlink the .luarc.json generated in the overlay
ln -fs ${pkgs.nvim-luarc-json} .luarc.json ln -fs ${pkgs.nvim-luarc-json} .luarc.json
# use fish
exec fish
''; '';
}; };
in { in {