mirror of https://github.com/folke/lazy.nvim.git
fix: use nvim_feekeys instead of nvim_input for keys handler. Fixes #28
This commit is contained in:
parent
2927b0597e
commit
52984419ff
|
@ -10,9 +10,10 @@ function M:_add(keys)
|
||||||
vim.keymap.del("n", keys)
|
vim.keymap.del("n", keys)
|
||||||
Util.track({ keys = keys })
|
Util.track({ keys = keys })
|
||||||
Loader.load(self.active[keys], { 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()
|
Util.track()
|
||||||
end)
|
end, { silent = true })
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param keys string
|
---@param keys string
|
||||||
|
|
Loading…
Reference in New Issue