Skip to content

Commit ddaffa0

Browse files
committed
fix(keys): replace keycodes manually
1 parent 382c8fa commit ddaffa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/lazy/core/handler/keys.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function M:_add(keys)
6565
local opts = M.opts(keys)
6666
opts.remap = true
6767
opts.expr = true
68+
opts.replace_keycodes = false
6869
vim.keymap.set(keys.mode, lhs, function()
6970
local plugins = self.active[keys.id]
7071

@@ -75,8 +76,7 @@ function M:_add(keys)
7576
Util.track({ keys = lhs })
7677
Loader.load(plugins, { keys = lhs })
7778
Util.track()
78-
79-
return "<Ignore>" .. lhs
79+
return vim.api.nvim_replace_termcodes("<Ignore>" .. lhs, false, true, true)
8080
end, opts)
8181
end
8282

0 commit comments

Comments
 (0)