mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
fix(keys): fix abbreviation expansion on lazy load
This commit is contained in:
parent
96584866b9
commit
a8ef2d3cfd
1 changed files with 3 additions and 0 deletions
|
@ -123,6 +123,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…
Add table
Add a link
Reference in a new issue