Skip to content

Commit a0fa4f3

Browse files
committed
chore(nix): use devshell to clone the repo again coz, why nottt?
1 parent cafb8de commit a0fa4f3

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

flake.nix

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,12 @@
2424
ripgrep
2525
];
2626
shellHook = ''
27-
ln -s "$(pwd)" "$HOME/.config/pwnvim"
28-
echo "Syncing Neovim plugins ..."
29-
nvim --headless +"Lazy! sync" +qa
27+
[ -d ~/.config/nvim ] && mv ~/.config/nvim ~/.config/nvim.before-pwnvim || true
28+
echo "Cloning, Syncing Neovim plugins ..."
29+
git clone --depth=1 https://github.com/pwnwriter/pwnvim ~/.config/nvim
30+
nvim --headless +"Lazy! sync" +qa
3031
'';
3132

32-
env = {
33-
34-
NVIM_APPNAME = "pwnvim";
35-
36-
};
37-
3833
};
3934
});
4035
};

0 commit comments

Comments
 (0)