From 1b5070ed91af16b83905327e56c05033eb4480da Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 6 Nov 2023 02:13:39 +0100 Subject: nvim: Set default opts --- .config/nvim/lua/mango/lib.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.config') diff --git a/.config/nvim/lua/mango/lib.lua b/.config/nvim/lua/mango/lib.lua index 9182a06..5ff57af 100644 --- a/.config/nvim/lua/mango/lib.lua +++ b/.config/nvim/lua/mango/lib.lua @@ -15,7 +15,10 @@ function M.remap(modes, from, to, opts) table.insert(ct, c) end) - vim.keymap.set(ct, from, to, opts) + vim.keymap.set(ct, from, to, opts or { + noremap = true, + silent = true, + }) end function M.save_regs(regs, callback) -- cgit v1.2.3