bug: Vim:Lua module not found for config of nerdtree. Please use a config()
function instead
#1460
Unanswered
ChrispyChris
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Did you check docs and existing issues?
Neovim version (nvim -v)
0.9.5
Operating system/version
6.8.9-arch1-2
Describe the bug
I'm trying to load nerdtree lazily and up to this point that was working when using the keys option. My problem begins when trying to use the cmd option. I'm just trying to execute NERDTree to open the NERDTree window and oddly enough if I type the command in after receiving this error, Lazy shows that it has been lazily loaded via the command instead of the key press.
This is the error I am receiving:
Error detected while processing VimEnter Autocommands for "*": Error executing lua callback: vim/_editor.lua:0: VimEnter Autocommands for "*"..script nvim_exec2() called at VimEnter Autocommands for "*":0: Vim:Lua module not found for config of nerdtree. Please use a
config()function ins tead stack traceback: [C]: in function 'nvim_exec2' vim/_editor.lua: in function 'cmd' ...hris/.config/nvim/lua/chrispychris/config/autogroups.lua:14: in function <...hris/.config/nvim/lua/chrispychris/config/autogroups.lua:12>
NERDTree plugin configuration file for lazy.nvim.
Autogroups file for setting up NERDTree command on an initialization of neovim without any files or arguments. I've currently commented out that code just to see if I could get NERDTree loading and it does open the NERDTree sidebar, but I get that error every time.
Steps To Reproduce
Expected Behavior
I would like to have NERDTree open when the if statement checks out to true, basically saying no arguments have been passed and that neovim was opened without a file. Currently I've just been trying to get success with the if statement commented out, but I'm having no luck with this error.
Repro
Edit: Here is an update of the autogroup file. I also made sure to move it blow lazy.nvim in init.lua so that lazy would load first in case this was an issue. It didn't seem to change anything though. This code is better and I thought it would fix things, but I was still not very lucky sadly.
The new error is slightly different too:
Beta Was this translation helpful? Give feedback.
All reactions