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:
Barrett Ruth 2026-03-06 11:35:30 -05:00
parent 6fd24afbfa
commit b8ca31aa86

View file

@ -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 = {