Open chrisgrieser opened 1 year ago
It's a great idea. I think it should be based on treesitter grammars
Lua patterns in particular would be more complicated to implement, because they don't share a grammar with regexp, and because lua is quite dynamic
+1 for Lua regexes
Support for other forms of regex would be awesome – especially since as a nvim-user, you have to know vimscript patterns, lua patterns, and most likely js regex, it sometimes gets a bit confusing.
For lua patterns, I know there is this repo which visualizes lua patterns quite decently, maybe you could make use of that? https://github.com/GitSparTV/lua-patterns