mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-04 06:24:39 +02:00
fix(lsp): allow silent=false
for lsp keymaps. Fixes #414
This commit is contained in:
parent
f5e010d887
commit
a28885be3f
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ function M.on_attach(client, buffer)
|
||||||
local opts = Keys.opts(keys)
|
local opts = Keys.opts(keys)
|
||||||
---@diagnostic disable-next-line: no-unknown
|
---@diagnostic disable-next-line: no-unknown
|
||||||
opts.has = nil
|
opts.has = nil
|
||||||
opts.silent = true
|
opts.silent = opts.silent ~= false
|
||||||
opts.buffer = buffer
|
opts.buffer = buffer
|
||||||
vim.keymap.set(keys.mode or "n", keys[1], keys[2], opts)
|
vim.keymap.set(keys.mode or "n", keys[1], keys[2], opts)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue