Closed chrisgrieser closed 1 year ago
I just added an experimental config variable, scrollview_refresh_mapping_desc
, that can be used to set the desc
field of the plugin's refresh mappings.
For your use case, it sounds like you'd want something like the following:
let g:scrollview_refresh_mapping_desc = 'which_key_ignore'
vim.g.scrollview_refresh_mapping_desc = 'which_key_ignore'
setup
callrequire('scrollview').setup({
...
refresh_mapping_desc = 'which_key_ignore',
...
})
Thanks, this works!
I'm only wondering: Is there any reason why I would want to give the refresh mappings a different description? I cannot really think of one, and in this case, there isn't really a need for configuring this by the user? 🤔
Making this configurable was done for the following reasons:
which-key
, so I don't know whether that's the case).desc
field is used differently for other purposes. The documentation describes it as a "human readable description", so fixing it at "which_key_ignore" would not follow its documented purpose.
For keymaps created by this plugin, e.g. for![CleanShot 2023-06-09 at 20 56 44@2x](https://github.com/dstein64/nvim-scrollview/assets/73286100/ef8a1d0f-e001-40bd-b953-7bbc2d9b8365)
z{letter}
, the plugins does clutter up whichkey.nvim:The problem should pretty easy to fix though, since the keymap just needs to use
desc = "which_key_ignore"
, see: https://github.com/folke/which-key.nvim/issues/391