Skip to content

Commit

Permalink
fix: use nvim_feekeys instead of nvim_input for keys handler. Fixes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 20, 2022
1 parent 2927b05 commit 5298441
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/lazy/core/handler/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ function M:_add(keys)
vim.keymap.del("n", keys)
Util.track({ keys = keys })
Loader.load(self.active[keys], { keys = keys })
vim.api.nvim_input(keys)
local feed = vim.api.nvim_replace_termcodes(keys, true, false, true)
vim.api.nvim_feedkeys(feed, "m", false)
Util.track()
end)
end, { silent = true })
end

---@param keys string
Expand Down

0 comments on commit 5298441

Please sign in to comment.