diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-06 02:13:39 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-06 02:13:39 +0100 |
commit | 1b5070ed91af16b83905327e56c05033eb4480da (patch) | |
tree | bb56b9e0b7c4da62fe30c83236e548ed600a691d /.config/nvim | |
parent | 6b786fa7e6d83688729b236d00afb6dd25b6dbb5 (diff) |
nvim: Set default opts
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/mango/lib.lua | 5 |
1 files changed, 4 insertions, 1 deletions
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) |