Olical / nfnl

Enhance your Neovim with Fennel
The Unlicense
235 stars 8 forks source link

Handle nil result from (find (vim.fn.getcwd)) #29

Closed Kamholtz closed 10 months ago

Kamholtz commented 10 months ago

if the path returned by (vim.fn.getcwd) does not have an ancestor containing an .nfnl.fnl file, (find (vim.fn.getcwd)) will return nil, which is not a valid input to string.sub.

Olical commented 10 months ago

If I had a penny for every time I tried to concat a nil to a string in Lua... thank you very much for catching this!