You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be quite possible to implement showing search results right in this plugin without requiring installing another plugin (that also overwrites n mappings). The only requirements I could imagine to do this would be plenary.nvim for async stuff (a plugin most people should have installed anyway, since a lot of plugins require it including telescope) and an external search program, preferably ripgrep but grep should do.
One could then use the / register to get the last searched pattern. Since this works asynchronously and potentially uses rg it should be reasonably fast without touching the native search functionality.
The text was updated successfully, but these errors were encountered:
I think it would be quite possible to implement showing search results right in this plugin without requiring installing another plugin (that also overwrites
n
mappings). The only requirements I could imagine to do this would beplenary.nvim
for async stuff (a plugin most people should have installed anyway, since a lot of plugins require it including telescope) and an external search program, preferablyripgrep
but grep should do.An example implementation could be how
todo-comments.nvim
does it: https://github.com/folke/todo-comments.nvim/blob/main/lua/todo-comments/search.luaOne could then use the
/
register to get the last searched pattern. Since this works asynchronously and potentially usesrg
it should be reasonably fast without touching the native search functionality.The text was updated successfully, but these errors were encountered: