format whichkey config

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

View File

@ -1,45 +1,45 @@
require("which-key").setup { require("which-key").setup {
plugins = { plugins = {
marks = true, -- shows a list of your marks on ' and ` marks = true, -- shows a list of your marks on ' and `
registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode
-- the presets plugin, adds help for a bunch of default keybindings in Neovim -- the presets plugin, adds help for a bunch of default keybindings in Neovim
-- 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 = {
operators = true, -- adds help for operators like d, y, ... and registers them for motion / text object completion
motions = true, -- adds help for motions
text_objects = true, -- help for text objects triggered after entering an operator
windows = true, -- default bindings on <c-w>
nav = true, -- misc bindings to work with windows
z = true, -- bindings for folds, spelling and others prefixed with z
g = true -- bindings for prefixed with g
}
}, },
presets = { -- add operators that will trigger motion and text object completion
operators = true, -- adds help for operators like d, y, ... and registers them for motion / text object completion -- to enable all native operators, set the preset / operators plugin above
motions = true, -- adds help for motions operators = {gc = "Comments"},
text_objects = true, -- help for text objects triggered after entering an operator icons = {
windows = true, -- default bindings on <c-w> breadcrumb = "»", -- symbol used in the command line area that shows your active key combo
nav = true, -- misc bindings to work with windows separator = "", -- symbol used between a key and it's label
z = true, -- bindings for folds, spelling and others prefixed with z group = "+" -- symbol prepended to a group
g = true, -- bindings for prefixed with g
}, },
}, window = {
-- add operators that will trigger motion and text object completion border = "none", -- none, single, double, shadow
-- to enable all native operators, set the preset / operators plugin above position = "bottom", -- bottom, top
operators = { gc = "Comments" }, margin = {1, 0, 1, 0}, -- extra window margin [top, right, bottom, left]
icons = { padding = {2, 2, 2, 2} -- extra window padding [top, right, bottom, left]
breadcrumb = "»", -- symbol used in the command line area that shows your active key combo },
separator = "", -- symbol used between a key and it's label layout = {
group = "+", -- symbol prepended to a group height = {min = 4, max = 25}, -- min and max height of the columns
}, width = {min = 20, max = 50}, -- min and max width of the columns
window = { spacing = 3 -- spacing between columns
border = "none", -- none, single, double, shadow },
position = "bottom", -- bottom, top ignore_missing = false, -- enable this to hide mappings for which you didn't specify a label
margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left] hidden = {"<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ "}, -- hide mapping boilerplate
padding = { 2, 2, 2, 2 }, -- extra window padding [top, right, bottom, left] show_help = true, -- show help message on the command line when the popup is visible
}, triggers = "auto" -- automatically setup triggers
layout = { -- triggers = {"<leader>"} -- or specifiy a list manually
height = { min = 4, max = 25 }, -- min and max height of the columns
width = { min = 20, max = 50 }, -- min and max width of the columns
spacing = 3, -- spacing between columns
},
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
show_help = true, -- show help message on the command line when the popup is visible
triggers = "auto", -- automatically setup triggers
-- triggers = {"<leader>"} -- or specifiy a list manually
} }