Closed goolord closed 2 years ago
Hm, so the nvim-treesitter module isn't located anywhere in your runtime path?
If this is a regular case where a module doesn't exist, might need to figure out how to do a faster fall-through. Maybe add a loader at the very end that records missing packages and checks ahead of loading the cache if the file exists, or something similar.
It is probably because we maintain the original vim loader, and we add 3 of our own.
One solution would be to just remove neovims original loader.
Maybe add a loader at the very end that records missing packages and checks ahead of loading the cache if the file exists, or something similar.
Interesting idea, we could do that. Problem is I'm not sure how to bail the loading process and skip all the loaders. Maybe redefining require
?
@goolord can you give #24 a go. It should make the performance roughly the same as without impatient for loading missing modules.
Fixed with #46
ref: https://github.com/lukas-reineke/indent-blankline.nvim/pull/213
tldr; a piece of code like this
is about 366% slower (~6 ms -> ~22 ms) with impatient.nvim enabled when nvim-treesitter, nvim-treesitter.query, and nvim-treesitter.indent don't exist