mirror of https://github.com/folke/lazy.nvim.git
fix(keys): replace keycodes manually
This commit is contained in:
parent
382c8fac56
commit
ddaffa0715
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue