nfnl icon indicating copy to clipboard operation
nfnl copied to clipboard

Macro files not being found if your CWD isn't the same as your .nfnl.fnl file

Open Olical opened this issue 3 months ago • 1 comments

I noticed when editing my dotfiles, if I opened Neovim at the root of my dotfiles repo (above my .config/nvim directory) and tried to save a .fnl the required some macros it would fail to find them. If I cd to my nvim directory before I open Neovim then it worked fine.

I think this used to work fine so maybe something changed with how the project root detection is working with the macro paths.

Olical avatar Sep 26 '25 11:09 Olical

Also seem to not be able to compile files if I try to write to them from an outer CWD with :w. But NfnlCompileFile is now working from outside the project dir which is nice. Just need to check how we're building paths, should probably just use the new fs.absolute-path more. Concatenating path strings is dangerous!

Olical avatar Nov 02 '25 15:11 Olical