Closed spywhere closed 3 years ago
This genuinely awesome, thanks!
How to use that with snap.maps
? Also, there is no documentation at all. Is it meant to be active by default?
It's optional, at the moment it isn't documented, you can use it with snap.maps
as you would any custom function. Something like:
snap.maps {
{"<Leader>g", snap.config.vimgrep {
producer = snap.get"producer.ripgrep.vimgrep".line {},
}}
}
A grep with
--vimgrep
will produce duplicate lines as there are multiple matches within the same line. While the introducedripgrep.vimgrep.line
producer will produce only a single line per match, regardless of multiple matches within the same line. This should help in a case where only line matches are needed, and to not waste processing power to the filtering.