which-key.nvim
which-key.nvim copied to clipboard
Problems with adding operator
trafficstars
Add operator gc with setup function doesn't work for me.
My which-key settings are:
use { 'folke/which-key.nvim', as = 'which-key',
config = require('which-key').setup {
plugins = {
presets = {
operators = true,
},
},
operators = {
gc = "Comments"
}
}
}
But no description has appeared:

Try with:
require('which-key').register({
c = {
name = 'Comments',
},
}, { prefix = 'g' })