Enable gf
(go to file) in Neovim for Lua and Fennel module paths.
With lazy.nvim
:
-- you may lazy-load on the Lua filetype
{ 'mrjones2014/lua-gf.nvim', ft = 'lua' },
Consider the code:
require('some.plugin.module.path')
If your cursor is anywhere in the string inside the require()
call,
with this plugin, you can press gf
to open the Lua file it corresponds to.