Idea: highlighting parts of the documentation #282
Replies: 3 comments 6 replies
-
Yeah sounds like something we can support. Just spit balling, but perhaps we could allow sources to hook into the documentation rendering so they can add whatever behavior they want. For example, I imagine it might be nice to include the entire file in the documentation preview and then scroll to the matched line. Feel free to open an issue and I can take a look Plugin looks great btw! I'd love to upstream it closer to 1.0 if you're interested |
Beta Was this translation helpful? Give feedback.
-
By the way, another idea I have is supporting completing completing entire lines after a match is found (like https://github.com/amarakon/nvim-cmp-buffer-lines). I would ideally like to do only one ripgrep search over the current project for performance - so instead of two plugins searching the same codebase twice, it would only search once and allow completing two different things. If you have some ideas how something like this could be supported, I'd love to know. |
Beta Was this translation helpful? Give feedback.
-
This is now well supported and everything is basically perfect 👍🏻 It works exactly like I wanted, so I'll close this as completed. |
Beta Was this translation helpful? Give feedback.
-
This week I have been working on a plugin at https://github.com/mikavilpas/blink-ripgrep.nvim. I want to build a way to quickly search matches for any text (with ripgrep), and inserting them in various ways.
Right now it looks like this:
As you can see, some context is shown in the documentation window. This works great for my needs, but it would be nice to see exactly where the matched word came from.
Compare to the way of highlighting the match that is available with telescope:
Beta Was this translation helpful? Give feedback.
All reactions