Skip to content

Commit

Permalink
fix(keys): fix abbreviation expansion on lazy load (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
milisims committed Jan 21, 2024
1 parent a9b9a4b commit d09084c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lazy/core/handler/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d09084c

Please sign in to comment.