From 4e14272f1d1fd7d85c239dd23a40e9573f62814e Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Fri, 9 Jul 2021 22:18:06 -0400 Subject: more refactor --- lua/lv-which-key/config.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lua/lv-which-key/config.lua') 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 = { "", "", "", "", "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 = "", + 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", -- cgit v1.2.3