Closed SingularisArt closed 1 year ago
Have you tried lazy loading? I recommend e.g. ft = "norg"
in packer. 130 milliseconds really isn't a lot for something as big as Neorg.
I did that and it went from 170 milliseconds to 210 milliseconds which isn't bad at all. Also, I keep getting this error:
Unable to load module core.norg.dirman - ...module.lua:36: module 'plenary.scandir' not found:
^Ino field package.preload['plenary.scandir']
^Ino file './plenary/scandir.lua'
^Ino file '/usr/share/luajit-2.1.0-beta3/plenary/scandir.lua'
^Ino file '/usr/local/share/lua/5.1/plenary/scandir.lua'
^Ino file '/usr/local/share/lua/5.1/plenary/scandir/init.lua'
^Ino file '/usr/share/lua/5.1/plenary/scandir.lua'
^Ino file '/usr/share/lua/5.1/plenary/scandir/init.lua'
^Ino file './plenary/scandir.so'
^Ino file '/usr/local/lib/lua/5.1/plenary/scandir.so'
^Ino file '/usr/lib/lua/5.1/plenary/scandir.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file './plenary.so'
^Ino file '/usr/local/lib/lua/5.1/plenary.so'
^Ino file '/usr/lib/lua/5.1/plenary.s
That error is cause Neorg needs plenary.nvim
at nvim-lua/plenary.nvim
. If you install that as well everything should be smooth sailing!
I have it installed already tho.
Is it loaded before neorg or installed with the require
key in packer.nvim?
It's loaded before neorg with the require
key.
@SingularisArt is this still an issue for you?
@d-r-a-b Yes. It still takes about 80-90 milliseconds more to load with Neorg.
Thanks for your response!
From @vhyrro 's comments above
Have you tried lazy loading? I recommend e.g. ft = "norg" in packer. 130 milliseconds really isn't a lot for something as big as Neorg.
On that basis, it seems appropriate to close this as wontfix
Yup, marking this as wontfix
. Neorg already loads faster than the average blink of an eye! :p
Prerequisites
Neovim Version
NVIM v0.8.0-dev-1131-gad1f353fe1
Neorg setup
Actual behavior
It takes about
170
milliseconds for neovim to load without neorg. It takes about300
milliseconds for neovim to load with neorg.Expected behavior
I expect neovim to load without causing such an increase in neovim.
Steps to reproduce
Potentially conflicting plugins
No response
Other information
No response
Help
No
Implementation help
No response