mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
fix(keys): make operator pending mode work. Fixes #286
This commit is contained in:
parent
299ffdfd53
commit
cdb998c6fe
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ function M.retrigger(keys)
|
||||||
c = type(c) == "number" and vim.fn.nr2char(c) or c
|
c = type(c) == "number" and vim.fn.nr2char(c) or c
|
||||||
pending = pending .. c
|
pending = pending .. c
|
||||||
end
|
end
|
||||||
|
if op and op ~= "" then
|
||||||
|
keys = "<esc>" .. op .. keys
|
||||||
|
end
|
||||||
local feed = vim.api.nvim_replace_termcodes(keys, true, false, true) .. pending
|
local feed = vim.api.nvim_replace_termcodes(keys, true, false, true) .. pending
|
||||||
if vim.v.count ~= 0 then
|
if vim.v.count ~= 0 then
|
||||||
feed = vim.v.count .. feed
|
feed = vim.v.count .. feed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue