Sometimes it is more convenient to search for the word under the cursor by typing * for searching forward, or # for searching backward, rather than typing / and (part of) the search term. However, even though it is equivalent to searching, nvim-scrollbar (via hlslens?) does not highlight the occurrences in the scrollbar. Only / works.
If I select the word under the cursor, it should show all occurrences of it in the scrollbar.
A workaround is to put the cursor on the desired word, then type in normal mode *//<Enter>. This works because // searches for the last search term.
Sometimes it is more convenient to search for the word under the cursor by typing
*for searching forward, or#for searching backward, rather than typing/and (part of) the search term. However, even though it is equivalent to searching, nvim-scrollbar (via hlslens?) does not highlight the occurrences in the scrollbar. Only/works.If I select the word under the cursor, it should show all occurrences of it in the scrollbar.
A workaround is to put the cursor on the desired word, then type in normal mode
*//<Enter>. This works because//searches for the last search term.