fix(keys): replace keycodes manually

This commit is contained in:
Folke Lemaitre 2023-02-08 09:33:38 +01:00
parent 382c8fac56
commit ddaffa0715
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 2 deletions

View File

@ -65,6 +65,7 @@ function M:_add(keys)
local opts = M.opts(keys) local opts = M.opts(keys)
opts.remap = true opts.remap = true
opts.expr = true opts.expr = true
opts.replace_keycodes = false
vim.keymap.set(keys.mode, lhs, function() vim.keymap.set(keys.mode, lhs, function()
local plugins = self.active[keys.id] local plugins = self.active[keys.id]
@ -75,8 +76,7 @@ function M:_add(keys)
Util.track({ keys = lhs }) Util.track({ keys = lhs })
Loader.load(plugins, { keys = lhs }) Loader.load(plugins, { keys = lhs })
Util.track() Util.track()
return vim.api.nvim_replace_termcodes("<Ignore>" .. lhs, false, true, true)
return "<Ignore>" .. lhs
end, opts) end, opts)
end end