Skip to content

mini.map - minimap.gen_integration.builtin_search does not clear on "<c-l>" #356

Closed Answered by echasnovski
yavorski asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, when search is activated there are active highlights in the mini.map, however when you press <c-l> to clear the highlights, search highlights in mini.map are not cleared from the mini.map view/window, how can we achieve that?

This is mostly because built-in mapping for <C-l> doesn't really update 'hlsearch' option. builtin_search tracking 'hlsearch' changes is mostly the only way I could find for its automated updates.

There are at least these approaches to solve the issue:

  • Go the route of 'mini.basics' and define right hand side of mapping as <Cmd>let v:hlsearch = 1 - v:hlsearch<CR>. It can be <C-l> or any other (like \h in 'mini.basics').
  • Go the built-in route and use its command b…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yavorski
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants