Fix recursive mapping problem. Thank you tpope!

Fix #858
Fix #871
This commit is contained in:
hrsh7th
2022-04-02 00:32:19 +09:00
parent 15f08a8faa
commit b3ca3fde06

View File

@@ -152,7 +152,7 @@ keymap.solve = function(bufnr, mode, map)
end end
if string.find(rhs, lhs, 1, true) == 1 then if string.find(rhs, lhs, 1, true) == 1 then
local recursive = string.format('<Plug>(cmp.u.k.recursive:%s)', lhs) local recursive = string.format('<SNR>_0(cmp.u.k.recursive:%s)', lhs)
keymap.set_map(bufnr, mode, recursive, lhs, { keymap.set_map(bufnr, mode, recursive, lhs, {
noremap = true, noremap = true,
script = map.script, script = map.script,