nlua.nvim icon indicating copy to clipboard operation
nlua.nvim copied to clipboard

question on 'gf' package.path/include_expr

Open klooj opened this issue 3 years ago • 0 comments

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?

klooj avatar Apr 17 '21 00:04 klooj