Folke Lemaitre
Folke Lemaitre
I don't really understand any of this. Can you give a repro that breaks todo-comments?
Fix it upstream instead?
That alreay gets triggered. You probably load the session in an autocmd. If so, just add `nested=true` to the autocmd
That even is triggered by neovim. Again, if it doesn work for you, it means you load the session from an autocmd without nested=trie. There's nothing to fix here apart...
Also, if you're testing with print, then that wouldn't work because session is loaded with silent. It still fires, but won't print
Sorry it took so long to fix, but thank you so much for the perfect way to reproduce this. This has been super helpful in finding the issue. ty!
I assume this code is based on what I do in trouble.nvim. I actually created a better implementation for grug-far.nvim. See https://github.com/MagicDuck/grug-far.nvim/blob/main/lua/grug-far/render/treesitter.lua And here's the relevant code to build the...