which-key.nvim icon indicating copy to clipboard operation
which-key.nvim copied to clipboard

question(healthcheck): how to mark overwrites as intended and not accidental conflicting

Open matu3ba opened this issue 4 years ago • 2 comments
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>`

matu3ba avatar Aug 16 '21 14:08 matu3ba

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) ?

matu3ba avatar Aug 16 '21 15:08 matu3ba

Or in absence of this, maybe a way to disable the health check?

wren avatar Nov 04 '21 03:11 wren