fix(init): add nowait to buffer keymap opts
Problem: Buffer-local mappings like `!` could be swallowed by Neovim's operator-pending machinery or by global maps sharing a prefix, since the keymap opts did not include `nowait`. Solution: Add `nowait = true` to the shared `opts` table used for all buffer-local mappings in `_setup_buf_mappings`.
This commit is contained in:
parent
6fd24afbfa
commit
b8ca31aa86
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ end
|
|||
function M._setup_buf_mappings(bufnr)
|
||||
local cfg = require('pending.config').get()
|
||||
local km = cfg.keymaps
|
||||
local opts = { buffer = bufnr, silent = true }
|
||||
local opts = { buffer = bufnr, silent = true, nowait = true }
|
||||
|
||||
---@type table<string, fun()>
|
||||
local actions = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue