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)
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 "<Ignore>" .. lhs
return vim.api.nvim_replace_termcodes("<Ignore>" .. lhs, false, true, true)
end, opts)
end