Repository navigation
Replies: 2 comments 8 replies
|
That's not a snacks issue. Snacks will load treesitter parsers for highlighting, for example for the files you are grepping. To load a parser, Neovim will find the |
|
I'm running into the same issue. I'm trying to understand which part is the problem. If I add only one grammar (lua, in my case) it's snappy fast to startup. But when I install all grammars, it has a very noticeable delay until the window is shown. It happens for both In both cases (few and many grammars) What part of pickers needs to scan all existing grammar files? Don't you only need it once you display the preview? Edit: I see that in |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm asking a question here rather than opening an issue because maybe this is a very specific problem and isn't fixable.
I have neovim installed with home manager on NixOS, and I install all treesitter grammars with:
But this makes the picker slow to open (around ~300-500ms), and compared with FzfLua which opens instantly, I found it weird (with "open" I mean the time it takes to actually see the window, this is not about searching or interacting with the picker window). Even if the directory I invoke
Snacks.picker.files()in has just one file, I can notice the delay.If I comment out the snippet above, the snacks picker then opens instantly.
So I'm not sure whether this is a "just install less grammars" or something that can be actually fixed/improved.
All reactions