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

Problems with adding operator

Open anuvyklack opened this issue 3 years ago • 1 comments
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: which-key operator

anuvyklack avatar Dec 07 '21 12:12 anuvyklack

Try with:

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

davidsierradz avatar Mar 02 '22 00:03 davidsierradz