mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(keys): forward count
to keymaps. Fixes #252
This commit is contained in:
parent
a59cd089dc
commit
a834b30c70
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@ function M.retrigger(keys)
|
|||
pending = pending .. c
|
||||
end
|
||||
local feed = vim.api.nvim_replace_termcodes(keys, true, false, true) .. pending
|
||||
if vim.v.count ~= 0 then
|
||||
feed = vim.v.count .. feed
|
||||
end
|
||||
vim.api.nvim_feedkeys(feed, "m", false)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue