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
Is your feature request related to a problem? Please describe.
By default, todo-comments.nvim only highlights keywords that are in comments, so something like the following (see image) won't cause anything to be highlighted, which is totally expected. However, when running :TodoTelescope, those same lines that are not highlighted appear
Describe the solution you'd like
It would be nice if this plugin somehow didn't display the keywords that are not highlighted. That way, :TodoTelescope only displays the keywords that appear in comments. Perhaps there can be a (COMMENT) placeholder in the regex search pattern that gets expanded before searching.
Describe alternatives you've considered
I believe that ripgrep can be configured to use a different regex search pattern, so this might technically be already possible using a custom regex pattern, but that unfortunately doesn't give a solution that works for every language, and it would also probably be a complicated regex pattern.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Did you check the docs?
Is your feature request related to a problem? Please describe.
By default,
todo-comments.nvim
only highlights keywords that are in comments, so something like the following (see image) won't cause anything to be highlighted, which is totally expected. However, when running:TodoTelescope
, those same lines that are not highlighted appearDescribe the solution you'd like
It would be nice if this plugin somehow didn't display the keywords that are not highlighted. That way,
:TodoTelescope
only displays the keywords that appear in comments. Perhaps there can be a(COMMENT)
placeholder in the regex search pattern that gets expanded before searching.Describe alternatives you've considered
I believe that ripgrep can be configured to use a different regex search pattern, so this might technically be already possible using a custom regex pattern, but that unfortunately doesn't give a solution that works for every language, and it would also probably be a complicated regex pattern.
Additional context
No response
The text was updated successfully, but these errors were encountered: