|
1 | 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, -- enabling this will show WhichKey when pressing z= to select spelling suggestions |
7 | | - suggestions = 9, -- how many suggestions should be shown in the list? |
8 | | - }, |
9 | | - -- the presets plugin, adds help for a bunch of default keybindings in Neovim |
10 | | - -- No actual key bindings are created |
11 | | - presets = { |
12 | | - operators = true, -- adds help for operators like d, y, ... and registers them for motion / text object completion |
13 | | - motions = true, -- adds help for motions |
14 | | - text_objects = true, -- help for text objects triggered after entering an operator |
15 | | - windows = true, -- default bindings on <c-w> |
16 | | - nav = true, -- misc bindings to work with windows |
17 | | - z = true, -- bindings for folds, spelling and others prefixed with z |
18 | | - g = true, -- bindings for prefixed with g |
19 | | - }, |
20 | | - }, |
21 | | - -- add operators that will trigger motion and text object completion |
22 | | - -- to enable all native operators, set the preset / operators plugin above |
23 | | - operators = { gc = "Comments" }, |
24 | | - key_labels = { |
25 | | - -- override the label used to display some keys. It doesn't effect WK in any other way. |
26 | | - -- For example: |
27 | | - -- ["<space>"] = "SPC", |
28 | | - -- ["<cr>"] = "RET", |
29 | | - -- ["<tab>"] = "TAB", |
30 | | - }, |
| 2 | + preset = "modern", |
31 | 3 | icons = { |
32 | | - breadcrumb = "»", -- symbol used in the command line area that shows your active key combo |
33 | | - separator = "➜", -- symbol used between a key and it's label |
34 | | - group = "+", -- symbol prepended to a group |
35 | | - }, |
36 | | - window = { |
37 | | - border = "none", -- none, single, double, shadow |
38 | | - position = "bottom", -- bottom, top |
39 | | - margin = { 0, 0, 0, 0 }, -- extra window margin [top, right, bottom, left] |
40 | | - padding = { 1, 0, 1, 0 }, -- extra window padding [top, right, bottom, left] |
41 | | - }, |
42 | | - layout = { |
43 | | - height = { min = 1, max = 25 }, -- min and max height of the columns |
44 | | - width = { min = 20, max = 50 }, -- min and max width of the columns |
45 | | - spacing = 1, -- spacing between columns |
46 | | - align = "center", -- align columns left, center or right |
47 | | - }, |
48 | | - ignore_missing = false, -- enable this to hide mappings for which you didn't specify a label |
49 | | - hidden = { "<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ " }, -- hide mapping boilerplate |
50 | | - show_help = true, -- show help message on the command line when the popup is visible |
51 | | - triggers = "auto", -- automatically setup triggers |
52 | | - -- triggers = {"<leader>"} -- or specify a list manually |
53 | | - |
54 | | - triggers_blacklist = { |
55 | | - -- list of mode / prefixes that should never be hooked by WhichKey |
56 | | - -- this is mostly relevant for key maps that start with a native binding |
57 | | - -- most people should not need to change this |
58 | | - n = { "o", "O" }, |
59 | | - }, |
| 4 | + mappings = false |
| 5 | + } |
60 | 6 | } |
0 commit comments