From f63510c5a05277d8232f25b5ef2d4defe51fca38 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 21 Jun 2023 17:34:15 -0400 Subject: [PATCH] fix(vim-sandwich): load vim-sandwich on keys and not file event --- lua/astrocommunity/syntax/vim-sandwich/vim-sandwich.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/syntax/vim-sandwich/vim-sandwich.lua b/lua/astrocommunity/syntax/vim-sandwich/vim-sandwich.lua index 445829d4f..f1f88db89 100644 --- a/lua/astrocommunity/syntax/vim-sandwich/vim-sandwich.lua +++ b/lua/astrocommunity/syntax/vim-sandwich/vim-sandwich.lua @@ -1 +1,8 @@ -return { "machakann/vim-sandwich", event = "User AstroFile" } +return { + "machakann/vim-sandwich", + keys = { + { "sa", desc = "Add surrounding", mode = { "n", "v" } }, + { "sd", desc = "Delete surrounding" }, + { "sr", desc = "Replace surrounding" }, + }, +}