mirror of https://github.com/folke/lazy.nvim.git
fix(keys): fix abbreviation expansion on lazy load (#1219)
This commit is contained in:
parent
a9b9a4b3a2
commit
d09084c4b1
|
@ -128,6 +128,9 @@ function M:_add(keys)
|
||||||
self:_set(keys, buf)
|
self:_set(keys, buf)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if keys.mode:sub(-1) == 'a' then
|
||||||
|
lhs = lhs .. '<C-]>'
|
||||||
|
end
|
||||||
local feed = vim.api.nvim_replace_termcodes("<Ignore>" .. lhs, true, true, true)
|
local feed = vim.api.nvim_replace_termcodes("<Ignore>" .. lhs, true, true, true)
|
||||||
-- insert instead of append the lhs
|
-- insert instead of append the lhs
|
||||||
vim.api.nvim_feedkeys(feed, "i", false)
|
vim.api.nvim_feedkeys(feed, "i", false)
|
||||||
|
|
Loading…
Reference in New Issue