tjdevries / nlua.nvim

Lua Development for Neovim
MIT License
262 stars 21 forks source link

question on 'gf' package.path/include_expr #26

Open klooj opened 3 years ago

klooj commented 3 years ago

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?