Skip to content

Commit

Permalink
fix(keymaps): silent by default
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Feb 6, 2023
1 parent d905ff0 commit e5626e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/lazyvim/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5626e9

Please sign in to comment.