nix-community / kickstart-nix.nvim

❄️ A dead simple Nix flake template repository for Neovim derivations [maintainer=@mrcjkb]
GNU General Public License v2.0
231 stars 10 forks source link

after folder won't load #7

Closed haru02w closed 10 months ago

haru02w commented 10 months ago

How to reproduce:

git clone https://github.com/mrcjkb/kickstart-nix.nvim
cd kickstart-nix
echo "error('Should show this error at neovim startup')" > nvim/after/init.lua
git add -A
nix run .
mrcjkb commented 10 months ago

Hey 👋

Try this:

mkdir -p nvim/after/plugin 
echo "error('Should show this error at neovim startup')" > nvim/after/plugin/init.lua
haru02w commented 10 months ago

👋 It still not throwing the error yet. image image

mrcjkb commented 10 months ago

Fixed with https://github.com/mrcjkb/kickstart-nix.nvim/commit/d0be2e86b42abffd500f282265fce018cc85049f.

Thanks for reporting :smile:

On a side note: Your screenshot says you have the file in after/init.lua. It has to be in after/plugin/init.lua.

haru02w commented 10 months ago

Thanks for the quick fix. I didn't notice it was that simple

mrcjkb commented 10 months ago

Thanks for the quick fix. I didn't notice it was that simple

Yeah, a dumb mistake on my end. I created the directory, then copied the directory into the directory, which resulted in $out/after/after instead of $out/after/ :facepalm: