plugins.which-key.settings.replace.desc

Lua patterns to replace right side description references with.

Type: null or (list of ((list of string) or raw lua code))

Default: null

Plugin default:

[
  [
    "<Plug>%(?(.*)%)?"
    "%1"
  ]
  [
    "^%+"
    ""
  ]
  [
    "<[cC]md>"
    ""
  ]
  [
    "<[cC][rR]>"
    ""
  ]
  [
    "<[sS]ilent>"
    ""
  ]
  [
    "^lua%s+"
    ""
  ]
  [
    "^call%s+"
    ""
  ]
  [
    "^:%s*"
    ""
  ]
]

Declared by:

plugins.which-key.settings.replace.key

Lua functions or list of strings to replace key left side key name with.

Type: null or (list of (lua function string or list of string or raw lua code))

Default: null

Plugin default:

{
  __raw = ''
    function(key)
      return require("which-key.view").format(key)
    end
  '';
}

Declared by: