mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-05 23:36:35 +00:00
fix: use nvim_feekeys instead of nvim_input for keys handler. Fixes #28
This commit is contained in:
parent
2927b0597e
commit
52984419ff
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue