mini.map - minimap.gen_integration.builtin_search does not clear on "<c-l>" #356
-
Hi, when search is activated there are active highlights in the Here is my config using lazy {
"echasnovski/mini.map",
keys = {{ "<leader>M", function() require("mini.map").toggle() end, silent = true, desc = "MiniMapToggle" }},
config = function()
local minimap = require("mini.map")
minimap.setup({
symbols = {
encode = minimap.gen_encode_symbols.dot("4x2")
},
window = {
width = 12,
show_integration_count = false
},
integrations = {
minimap.gen_integration.gitsigns(),
minimap.gen_integration.diagnostic({
info = "DiagnosticFloatingInfo",
hint = "DiagnosticFloatingHint",
warn = "DiagnosticFloatingWarn",
error = "DiagnosticFloatingError"
}),
minimap.gen_integration.builtin_search(),
},
})
end
} Mini plugins are awesome, thank you for that! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is mostly because built-in mapping for There are at least these approaches to solve the issue:
vim.keymap.set('n', '<C-l>', ':nohlsearch | diffupdate | normal! <C-l><CR>')
Thanks! |
Beta Was this translation helpful? Give feedback.
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:
<Cmd>let v:hlsearch = 1 - v:hlsearch<CR>
. It can be<C-l>
or any other (like\h
in 'mini.basics').