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)
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue