format whichkey config

This commit is contained in:
siduck76 2021-06-02 00:22:47 +05:30
parent 7c0f3e31f0
commit a38c4543aa

View file

@ -6,7 +6,7 @@ require("which-key").setup {
-- No actual key bindings are created -- No actual key bindings are created
spelling = { spelling = {
enabled = false, -- enabling this will show WhichKey when pressing z= to select spelling suggestions enabled = false, -- enabling this will show WhichKey when pressing z= to select spelling suggestions
suggestions = 20, -- how many suggestions should be shown in the list? suggestions = 20 -- how many suggestions should be shown in the list?
}, },
presets = { presets = {
operators = true, -- adds help for operators like d, y, ... and registers them for motion / text object completion operators = true, -- adds help for operators like d, y, ... and registers them for motion / text object completion
@ -15,8 +15,8 @@ require("which-key").setup {
windows = true, -- default bindings on <c-w> windows = true, -- default bindings on <c-w>
nav = true, -- misc bindings to work with windows nav = true, -- misc bindings to work with windows
z = true, -- bindings for folds, spelling and others prefixed with z z = true, -- bindings for folds, spelling and others prefixed with z
g = true, -- bindings for prefixed with g g = true -- bindings for prefixed with g
}, }
}, },
-- add operators that will trigger motion and text object completion -- add operators that will trigger motion and text object completion
-- to enable all native operators, set the preset / operators plugin above -- to enable all native operators, set the preset / operators plugin above
@ -24,22 +24,22 @@ require("which-key").setup {
icons = { icons = {
breadcrumb = "»", -- symbol used in the command line area that shows your active key combo breadcrumb = "»", -- symbol used in the command line area that shows your active key combo
separator = "", -- symbol used between a key and it's label separator = "", -- symbol used between a key and it's label
group = "+", -- symbol prepended to a group group = "+" -- symbol prepended to a group
}, },
window = { window = {
border = "none", -- none, single, double, shadow border = "none", -- none, single, double, shadow
position = "bottom", -- bottom, top position = "bottom", -- bottom, top
margin = {1, 0, 1, 0}, -- extra window margin [top, right, bottom, left] margin = {1, 0, 1, 0}, -- extra window margin [top, right, bottom, left]
padding = { 2, 2, 2, 2 }, -- extra window padding [top, right, bottom, left] padding = {2, 2, 2, 2} -- extra window padding [top, right, bottom, left]
}, },
layout = { layout = {
height = {min = 4, max = 25}, -- min and max height of the columns height = {min = 4, max = 25}, -- min and max height of the columns
width = {min = 20, max = 50}, -- min and max width of the columns width = {min = 20, max = 50}, -- min and max width of the columns
spacing = 3, -- spacing between columns spacing = 3 -- spacing between columns
}, },
ignore_missing = false, -- enable this to hide mappings for which you didn't specify a label ignore_missing = false, -- enable this to hide mappings for which you didn't specify a label
hidden = {"<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ "}, -- hide mapping boilerplate hidden = {"<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ "}, -- hide mapping boilerplate
show_help = true, -- show help message on the command line when the popup is visible show_help = true, -- show help message on the command line when the popup is visible
triggers = "auto", -- automatically setup triggers triggers = "auto" -- automatically setup triggers
-- triggers = {"<leader>"} -- or specifiy a list manually -- triggers = {"<leader>"} -- or specifiy a list manually
} }