mirror of https://github.com/folke/lazy.nvim.git
fix(keys): make operator pending mode work. Fixes #286
This commit is contained in:
parent
299ffdfd53
commit
cdb998c6fe
|
@ -24,6 +24,9 @@ function M.retrigger(keys)
|
|||
c = type(c) == "number" and vim.fn.nr2char(c) or c
|
||||
pending = pending .. c
|
||||
end
|
||||
if op and op ~= "" then
|
||||
keys = "<esc>" .. op .. keys
|
||||
end
|
||||
local feed = vim.api.nvim_replace_termcodes(keys, true, false, true) .. pending
|
||||
if vim.v.count ~= 0 then
|
||||
feed = vim.v.count .. feed
|
||||
|
|
Loading…
Reference in New Issue