diff --git a/lua/lazy/core/handler/keys.lua b/lua/lazy/core/handler/keys.lua index bf7f4e2..f398127 100644 --- a/lua/lazy/core/handler/keys.lua +++ b/lua/lazy/core/handler/keys.lua @@ -65,6 +65,7 @@ function M:_add(keys) local opts = M.opts(keys) opts.remap = true opts.expr = true + opts.replace_keycodes = false vim.keymap.set(keys.mode, lhs, function() local plugins = self.active[keys.id] @@ -75,8 +76,7 @@ function M:_add(keys) Util.track({ keys = lhs }) Loader.load(plugins, { keys = lhs }) Util.track() - - return "" .. lhs + return vim.api.nvim_replace_termcodes("" .. lhs, false, true, true) end, opts) end