which-key.nvim
which-key.nvim copied to clipboard
question(healthcheck): how to mark overwrites as intended and not accidental conflicting
trafficstars
The following warnings are given upon running :checkhealth on a fresh install.
This is kinda odd, since which-key should work without keybindings.
So somewhere checkhealth broke.
health#which_key#check
========================================================================
## WhichKey: checking conflicting keymaps
- WARNING: buffer-local keymap overriding global for mode **"n"**, buf: 0, lhs: **" "**
- INFO: old rhs: ``
- INFO: new rhs: `<cmd>lua require("which-key").show(" ", {mode = "n", auto = true})<cr>`
- WARNING: buffer-local keymap overriding global for mode **"x"**, buf: 0, lhs: **" "**
- INFO: old rhs: ``
- INFO: new rhs: `<cmd>lua require("which-key").show(" ", {mode = "v", auto = true})<cr>`
This comes from
vim.api.nvim_set_keymap("n", " ", "", { noremap = true })
vim.api.nvim_set_keymap("x", " ", "", { noremap = true })
and alike mappings.
Is there a plan or are there any plans to indicate that a mapping is intended to overwrite stuff (ideally also what existing stuff, but that might be too noisy) ?
Or in absence of this, maybe a way to disable the health check?