From a577adcfa56e8501bbbb40f621a280949f8ae357 Mon Sep 17 00:00:00 2001 From: Rea Date: Thu, 20 Jul 2023 10:31:16 +0800 Subject: [PATCH 1/2] Update nvim-toggler keys tip plugin nvim-toggler keys tip toggle cursorword --- lua/astrocommunity/utility/nvim-toggler/init.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/utility/nvim-toggler/init.lua b/lua/astrocommunity/utility/nvim-toggler/init.lua index 7bf5edf01..2d22b77f2 100644 --- a/lua/astrocommunity/utility/nvim-toggler/init.lua +++ b/lua/astrocommunity/utility/nvim-toggler/init.lua @@ -1 +1,12 @@ -return { "nguyenvukhang/nvim-toggler", event = { "User AstroFile", "InsertEnter" }, opts = {} } +return { + "nguyenvukhang/nvim-toggler", + event = { "User AstroFile", "InsertEnter" }, + keys = { + { + "i", + desc = "Toggle CursorWord", + }, + }, + opts = {}, + }, + From d6042b0f042177886634e81626239f15e3b50ae9 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Fri, 21 Jul 2023 07:15:14 -0400 Subject: [PATCH 2/2] Make linter and formatter happy --- .../utility/nvim-toggler/init.lua | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/lua/astrocommunity/utility/nvim-toggler/init.lua b/lua/astrocommunity/utility/nvim-toggler/init.lua index 2d22b77f2..b150f6d40 100644 --- a/lua/astrocommunity/utility/nvim-toggler/init.lua +++ b/lua/astrocommunity/utility/nvim-toggler/init.lua @@ -1,12 +1,11 @@ -return { - "nguyenvukhang/nvim-toggler", - event = { "User AstroFile", "InsertEnter" }, - keys = { - { - "i", - desc = "Toggle CursorWord", - }, +return { + "nguyenvukhang/nvim-toggler", + event = { "User AstroFile", "InsertEnter" }, + keys = { + { + "i", + desc = "Toggle CursorWord", }, - opts = {}, }, - + opts = {}, +}