Open alexmozaidze opened 6 months ago
@alexmozaidze Hmmm, that's very odd. I can't think of an obvious reason for this either.
Try creating a minimal config that includes just Modicator (and perhaps also lualine and your colorscheme). Does that give you the same behaviour?
I personally lazy load it on ModeChanged
. Do you get the same one-second load time if you do that (and trigger it by changing mode)?
I did some experimenting and found out that lualine integration was the root cause of slow startup.
Toggle lualine integration on/off to see the difference in startup time.
Here's a minimal vimrc with Lazy for profiling:
@alexmozaidze I get 60-70 ms startup for Modicator with Lualine integration enabled, and ~10 ms with it disabled. What version of Neovim are you using? I'm currently testing on nightly v0.10.0-dev-1962+gc26dc1f77.
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.0-beta3
But it happens on Nightly too, iirc. I should also mention that all my machines are quite weak, so there is a chance that the slowness is there for you too, but the CPU speed mitigates it to unnoticeable.
Sorry for late response.
I see! Yeah I'm not sure what could be causing this for you. I'll leave this open and see if anyone else has a similar issue that can help us figure out what's going on.
I've noticed in the Lazy profiler that Modicator takes a long time to load, somewhere around 600-900ms. When I remove Modicator, Neovim opens almost instantly. I am unsure of what's causing such a slowdown, and glancing over the codebase, couldn't think of any probable cause.