mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-16 15:31:06 +02:00
fix(keymaps): silent by default
This commit is contained in:
parent
d905ff08b9
commit
e5626e9a2d
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@ local function map(mode, lhs, rhs, opts)
|
||||||
---@cast keys LazyKeysHandler
|
---@cast keys LazyKeysHandler
|
||||||
-- do not create the keymap if a lazy keys handler exists
|
-- do not create the keymap if a lazy keys handler exists
|
||||||
if not keys.active[keys.parse({ lhs, mode = mode }).id] then
|
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)
|
vim.keymap.set(mode, lhs, rhs, opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue