From d09084c4b1f5c58724152a4acad7c880117a95ea Mon Sep 17 00:00:00 2001 From: Emilia Simmons Date: Sun, 21 Jan 2024 05:40:46 -0500 Subject: [PATCH] fix(keys): fix abbreviation expansion on lazy load (#1219) --- lua/lazy/core/handler/keys.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lazy/core/handler/keys.lua b/lua/lazy/core/handler/keys.lua index 815fcbb..e2020d1 100644 --- a/lua/lazy/core/handler/keys.lua +++ b/lua/lazy/core/handler/keys.lua @@ -128,6 +128,9 @@ function M:_add(keys) self:_set(keys, buf) end + if keys.mode:sub(-1) == 'a' then + lhs = lhs .. '' + end local feed = vim.api.nvim_replace_termcodes("" .. lhs, true, true, true) -- insert instead of append the lhs vim.api.nvim_feedkeys(feed, "i", false)