Skip to content

Commit 5ee0c6c

Browse files
committed
feat(keymap): Add nowait to buffer-local keymaps
Without nowait, single-key bindings like 'd' can feel sluggish if the user has operator-pending mappings. Vim waits for potential follow-up keys (dd, dw, etc.) before executing.
1 parent 9751138 commit 5ee0c6c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/vgit/core/keymap.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ function keymap.buffer_set(buffer, opts, callback)
6767
desc = desc,
6868
silent = silent,
6969
noremap = noremap,
70+
nowait = true,
7071
buffer = buffer.bufnr,
7172
})
7273

0 commit comments

Comments
 (0)