whichkey.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. require("which-key").setup {
  2. plugins = {
  3. marks = true, -- shows a list of your marks on ' and `
  4. registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode
  5. spelling = {
  6. enabled = true, -- show WhichKey when pressing z=
  7. suggestions = 50, -- amount of shown suggestions
  8. },
  9. -- the presets plugin, adds help for a bunch of default keybindings in Neovim
  10. presets = {
  11. operators = true, -- adds help for operators like d, y, ... and registers them for motion / text object completion
  12. motions = true, -- adds help for motions
  13. text_objects = true, -- help for text objects triggered after entering an operator
  14. windows = true, -- default bindings on <c-w>
  15. nav = true, -- misc bindings to work with windows
  16. z = true, -- bindings for folds, spelling and others prefixed with z
  17. g = true, -- bindings for prefixed with g
  18. },
  19. },
  20. -- add operators that will trigger motion and text object completion
  21. -- to enable all native operators, set the preset / operators plugin above
  22. -- operators = { gc = "Comments" },
  23. icons = {
  24. breadcrumb = "»", -- symbol used in the command line area that shows your active key combo
  25. separator = "➜", -- symbol used between a key and it's label
  26. group = "+", -- symbol prepended to a group
  27. },
  28. -- popup_mappings = {
  29. -- scroll_down = '<c-d>', -- binding to scroll down inside the popup
  30. -- scroll_up = '<c-u>', -- binding to scroll up inside the popup
  31. -- },
  32. -- window = {
  33. -- border = "none", -- none, single, double, shadow
  34. -- position = "bottom", -- bottom, top
  35. -- margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left]
  36. -- padding = { 2, 2, 2, 2 }, -- extra window padding [top, right, bottom, left]
  37. -- winblend = 0
  38. -- },
  39. layout = {
  40. height = { min = 4, max = 25 }, -- min and max height of the columns
  41. width = { min = 20, max = 50 }, -- min and max width of the columns
  42. spacing = 3, -- spacing between columns
  43. align = "left", -- align columns left, center or right
  44. },
  45. -- ignore_missing = false, -- enable this to hide mappings for which you didn't specify a label
  46. -- hidden = { "<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ "}, -- hide mapping boilerplate
  47. show_help = true, -- show help message on the command line when the popup is visible
  48. -- triggers = "auto", -- automatically setup triggers
  49. -- triggers_blacklist = {
  50. -- -- list of mode / prefixes that should never be hooked by WhichKey
  51. -- -- this is mostly relevant for key maps that start with a native binding
  52. -- -- most people should not need to change this
  53. -- i = { "j", "k" },
  54. -- v = { "j", "k" },
  55. -- },
  56. }