From e5626e9a2dadf9b27287fc81b2dd59bd5291f684 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 6 Feb 2023 08:35:11 +0100 Subject: [PATCH] fix(keymaps): silent by default --- lua/lazyvim/config/keymaps.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index a21d0b47..b32f032c 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -7,6 +7,8 @@ local function map(mode, lhs, rhs, opts) ---@cast keys LazyKeysHandler -- do not create the keymap if a lazy keys handler exists if not keys.active[keys.parse({ lhs, mode = mode }).id] then + opts = opts or {} + opts.silent = opts.silent ~= false vim.keymap.set(mode, lhs, rhs, opts) end end