neorg
neorg copied to clipboard
Cannot run NeorgStart
Prerequisites
- [X] I have read contribution guidelines
- [X] I am using the latest version of the plugin
- [X] I am using either 0.6 stable or the latest compiled neovim version
Neovim Version
NVIM v0.6.1
Neorg setup
require("neorg").setup {
load = {
["core.defaults"] = {},
["core.norg.dirman"] = {
config = {
workspaces = {
home = "~/Documents/notes/home",
work = "~/Documents/notes/work",
},
},
},
},
}
Actual behavior
I get the following error and nothing else happens. It doesn't bring me to my Neorg workspace or make the :Neorg
command available at all.
E5108: Error executing lua ...art/neorg/lua/neorg/modules/core/autocommands/module.lua:72: Vim(autocmd):E1155: Cannot define autocommands for ALL events
stack traceback:
[C]: in function 'cmd'
...art/neorg/lua/neorg/modules/core/autocommands/module.lua:72: in function 'enable_autocommand'
...start/neorg/lua/neorg/modules/core/highlights/module.lua:491: in function 'load'
.../nvim/site/pack/packer/start/neorg/lua/neorg/modules.lua:200: in function 'load_module'
.../nvim/site/pack/packer/start/neorg/lua/neorg/modules.lua:118: in function 'load_module'
.../nvim/site/pack/packer/start/neorg/lua/neorg/modules.lua:118: in function 'load_module'
.../site/pack/packer/start/neorg/lua/neorg/modules/base.lua:243: in function 'load'
.../nvim/site/pack/packer/start/neorg/lua/neorg/modules.lua:200: in function 'load_module'
...al/share/nvim/site/pack/packer/start/neorg/lua/neorg.lua:87: in function 'org_file_entered'
[string ":lua"]:1: in main chunk
Press ENTER or type command to continue
Expected behavior
I would expect it to bring me to my default Neorg workspace (or previous one, I am not exactly sure since I haven't seen it working yet) and make the :Neorg
command available to work within the Neorg environment
Steps to reproduce
- Open
nvim
outside of a.norg
file - Run
:NeorgStart
Potentially conflicting plugins
I am currently using AstroVim, but it seems like it is failing when running the autocommands
module and is failing to set those up for some reason.
Other information
If I open neovim with a .norg
file directly then it seems to work as intended and I don't get any autocommand errors.
Help
Yes, but I don't know how to start. I would need guidance (check question below)
Implementation help
No response
Also I should note that if I disable the ["core.defaults"]
modules and just have core.norg.dirman
enabled then running NeorgStart
successfully loads my workspace and brings me to my file. It seems to just be something with the core.autocommands
module
subscribe
Thanks for the heads up @mehalter. It's weird cause I can't really seem to reproduce this on my end, it works just as intended.
I'll play around with it and see whether I can figure anything out :)
@vhyrro Thanks. I need to get some time to do more testing and debugging to figure out if it's a plugin I'm loading causing the issue. Do you have any idea what the error message is saying?
I'm actually a little confused by it - to my knowledge there should be nothing that should be invoking a nonexistent autocommand :thinking:
Is that the only error message you get, or is there more text upon running :messages
?
That's the only error I get with :messages
. Is there anyway to enable more debugging logging with neorg that might help?
Hello, what is the state of the issue @mehalter ?
Can this issue be closed? It was non-reproducible and the author has not provided more information for over a year.
@vhyrro close this
:NeorgStart
has been removed for a while to allow for more conventional lazy loading techniques, so yeah this issue is not relevant much more. Closing!