summaryrefslogtreecommitdiff
path: root/lua/lv-which-key/config.lua
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-07-09 22:18:06 -0400
committerchristianchiarulli <[email protected]>2021-07-09 22:18:06 -0400
commit4e14272f1d1fd7d85c239dd23a40e9573f62814e (patch)
tree1ace8e4071e425ce4442304e4907c83579fe5d42 /lua/lv-which-key/config.lua
parent1a8539fed96cdc1f33758e425a6b329f5eea1653 (diff)
more refactor
Diffstat (limited to 'lua/lv-which-key/config.lua')
-rw-r--r--lua/lv-which-key/config.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/lv-which-key/config.lua b/lua/lv-which-key/config.lua
index f16491c5..a0a51e3c 100644
--- a/lua/lv-which-key/config.lua
+++ b/lua/lv-which-key/config.lua
@@ -36,6 +36,15 @@ O.plugin.which_key = {
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
},
+
+ opts = {
+ mode = "n", -- NORMAL mode
+ prefix = "<leader>",
+ buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings
+ silent = true, -- use `silent` when creating keymaps
+ noremap = true, -- use `noremap` when creating keymaps
+ nowait = true, -- use `nowait` when creating keymaps
+ },
mappings = {
["w"] = "Save",
["q"] = "Quit",