File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ function M.retrigger(keys)
25
25
pending = pending .. c
26
26
end
27
27
local op = vim .v .operator
28
- if op and op ~= " " then
28
+ if op and op ~= " " and vim . api . nvim_get_mode (). mode : find ( " o " ) then
29
29
keys = " <esc>" .. op .. keys
30
30
end
31
- local feed = vim .api .nvim_replace_termcodes (keys , true , false , true ) .. pending
31
+ local feed = vim .api .nvim_replace_termcodes (keys , true , true , true ) .. pending
32
32
if vim .v .count ~= 0 then
33
33
feed = vim .v .count .. feed
34
34
end
35
- vim .api .nvim_feedkeys (feed , " m " , false )
35
+ vim .api .nvim_input (feed )
36
36
end
37
37
38
38
--- @param value string | LazyKeys
@@ -75,7 +75,6 @@ function M:_add(value)
75
75
local keys = M .parse (value )
76
76
local lhs = keys [1 ]
77
77
local opts = M .opts (keys )
78
- opts .noremap = true
79
78
vim .keymap .set (keys .mode , lhs , function ()
80
79
local key = self :key (value )
81
80
local plugins = self .active [key ]
You can’t perform that action at this time.
0 commit comments