From ddaffa07156a090383bd32ef88669eea1b22c11a Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 8 Feb 2023 09:33:38 +0100 Subject: [PATCH] fix(keys): replace keycodes manually --- lua/lazy/core/handler/keys.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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