nlua.nvim
nlua.nvim copied to clipboard
question on 'gf' package.path/include_expr
thank you for this v helpful plugin.
with the following hiearchy:
nvim/
- init.lua
- lua/
- domain/
- file.lua
a line in file init.lua says "require('domain.file')". If I cd nvim/ && nvim init.lua
and then gf
on that line, nvim opens an empty buffer. But, if instead I cd nvim/lua/
then gf
works exactly as expected.
This difference is because nvim/lua/ is not in my package.path. My question is, should it be (and i'm failing) or is this expected?