mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/keymap: quickfix, use "keep" rather than "error"
There are some codepaths out there in the wild that seem to be explicitly setting a buffer at build time. I'm not convinced that's a sane thing to do, but I don't have time to dig any further right now. See the discussion starting here: https://github.com/nix-community/nixvim/pull/2712#issuecomment-2556330101 for more context.
This commit is contained in:
parent
37608b4627
commit
f3ef2721ab
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@
|
|||
local __nixvim_binds = ${lib.nixvim.toLuaObject (map helpers.keymaps.removeDeprecatedMapAttrs mappings)}
|
||||
|
||||
for i, map in ipairs(__nixvim_binds) do
|
||||
local options = vim.tbl_extend("error", map.options or {}, { buffer = args.buf })
|
||||
local options = vim.tbl_extend("keep", map.options or {}, { buffer = args.buf })
|
||||
vim.keymap.set(map.mode, map.key, map.action, options)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue