Skip to content

Commit

Permalink
fix(keys): replace keycodes manually
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Feb 8, 2023
1 parent 382c8fa commit ddaffa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lazy/core/handler/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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

Expand Down

0 comments on commit ddaffa0

Please sign in to comment.