diff options
author | opalmay <[email protected]> | 2023-01-07 17:03:03 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-07 17:03:03 +0200 |
commit | 5ae42b0c44c4237912dcea18457582b52d53804e (patch) | |
tree | 9dcc55b80e9293d36ccef3a3f3a0743e7dbcaeb2 /lua/lvim/core/which-key.lua | |
parent | 719adbc4bb3a494073d1063bf2768bb2834e3916 (diff) |
feat: update setup tables (#3693)
* feat(nvim-tree): update setup table
* chore: lint
* fix: move option to correct place
* feat(illuminate): update setup table
* feat(which-key): update setup table
* feat(project.nvim): update setup table
* feat(gitsigns): update setup table
* chore: lint
* feat(lir): update setup table
Diffstat (limited to 'lua/lvim/core/which-key.lua')
-rw-r--r-- | lua/lvim/core/which-key.lua | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/lua/lvim/core/which-key.lua b/lua/lvim/core/which-key.lua index 31479a91..d1585702 100644 --- a/lua/lvim/core/which-key.lua +++ b/lua/lvim/core/which-key.lua @@ -8,6 +8,10 @@ M.config = function() plugins = { marks = false, -- shows a list of your marks on ' and ` registers = false, -- shows your registers on " in NORMAL or <C-r> in INSERT mode + spelling = { + enabled = true, + suggestions = 20, + }, -- use which-key for spelling hints -- the presets plugin, adds help for a bunch of default keybindings in Neovim -- No actual key bindings are created presets = { @@ -19,7 +23,16 @@ M.config = function() z = false, -- bindings for folds, spelling and others prefixed with z g = false, -- bindings for prefixed with g }, - spelling = { enabled = true, suggestions = 20 }, -- use which-key for spelling hints + }, + -- add operators that will trigger motion and text object completion + -- to enable all native operators, set the preset / operators plugin above + operators = { gc = "Comments" }, + key_labels = { + -- override the label used to display some keys. It doesn't effect WK in any other way. + -- For example: + -- ["<space>"] = "SPC", + -- ["<cr>"] = "RET", + -- ["<tab>"] = "TAB", }, icons = { breadcrumb = lvim.icons.ui.DoubleChevronRight, -- symbol used in the command line area that shows your active key combo @@ -43,9 +56,10 @@ M.config = function() spacing = 3, -- spacing between columns align = "left", -- align columns left, center or right }, - hidden = { "<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ " }, -- hide mapping boilerplate 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 + show_keys = true, -- show the currently pressed key and its label as a message in the command line triggers = "auto", -- automatically setup triggers -- triggers = {"<leader>"} -- or specify a list manually triggers_blacklist = { @@ -55,6 +69,12 @@ M.config = function() i = { "j", "k" }, v = { "j", "k" }, }, + -- disable the WhichKey popup for certain buf types and file types. + -- Disabled by deafult for Telescope + disable = { + buftypes = {}, + filetypes = { "TelescopePrompt" }, + }, }, opts = { |