fix(keys): fix abbreviation expansion on lazy load (#1219)

This commit is contained in:
Emilia Simmons 2024-01-21 05:40:46 -05:00 committed by GitHub
parent a9b9a4b3a2
commit d09084c4b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ function M:_add(keys)
self:_set(keys, buf)
end
if keys.mode:sub(-1) == 'a' then
lhs = lhs .. '<C-]>'
end
local feed = vim.api.nvim_replace_termcodes("<Ignore>" .. lhs, true, true, true)
-- insert instead of append the lhs
vim.api.nvim_feedkeys(feed, "i", false)