Closed hrqmonteiro closed 1 month ago
I'm sorry but I can't easily understand your setup (lua syntax highlighting would help a lot already)
but this error looks correct to me
it seems like an issue in the custom function stuff you do there to get the specs
because this file /home/hrq/.config/nvim/lua/modules/tools/neogit.octo
definitely doesn't exist
it should be /home/hrq/.config/nvim/lua/modules/tools/neogit/octo
(notice the /
instead of the .
)
I'm sorry but I can't easily understand your setup (lua syntax highlighting would help a lot already) but this error looks correct to me it seems like an issue in the custom function stuff you do there to get the specs because this file
/home/hrq/.config/nvim/lua/modules/tools/neogit.octo
definitely doesn't exist it should be/home/hrq/.config/nvim/lua/modules/tools/neogit/octo
(notice the/
instead of the.
)
That was a typo, sorry
It is complaining about modules/tools/neogit.octo
As soon as i open Nvim. But, as i said, octo is loaded fine.
But if i move to modules/tools/neogit/octo/init.lua
, then it keeps complaining AND doesn't load octo
doesn't look like a typo to me
in the error messages it also is neogit.octo
instead of neogit/octo
also not sure if I read your code correctly
but you should use only .
for paths to modules which is perhaps what causes the issue
either way this really likely just is an issue with your custom script and not lazy.nvim therefor you should perhaps move this to a discussion where people can help you with your custom stuff
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.1
Operating system/version
openSUSE tumbleweed
Describe the bug
I am getting the message
E484: Can't open file /home/hrq/.config/nvim/lua/modules/tools/neogit/neogit.octo
Even though i have that file, and the plugin is loaded
Steps To Reproduce
I am loading lazy, and defining it to recognize any folder inside
modules
folder and put it to specconfig/lazy.lua
And on
packages.lua
i define which ones i wantSo this way it is loading
lua/modules/tools/neogit/init.lua
andlua/modules/tools/neogit/octo.lua
But it is still accusing me of not having neogit.octo
And also, what i wanted was for it to load
lua/modules/tools/neogit/octo/init.lua
But if i do like this, it complains the same error AND not load the plugin on lazy
for reference, this is neogit/init.lua
and neogit/octo.lua
Expected Behavior
To not return the error, since the file exists
And, most importantly, to allow me to have a
modules/tools/neogit/octo/init.lua
file insteadWhich is what i want
Repro