feat: Set up the dev shell
This commit is contained in:
parent
573e24df9b
commit
75a8915db4
2 changed files with 20 additions and 6 deletions
15
Justfile
Normal file
15
Justfile
Normal 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}}
|
11
flake.nix
11
flake.nix
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue