From d359eb2c24dc90b24b891f162f65088c701ae47e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 23 Dec 2023 17:38:30 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20add=20recorder=20extr?= =?UTF-8?q?a=20to=20help=20with=20macros?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lua/plugins/extras/coding/recorder.lua | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .config/nvim/lua/plugins/extras/coding/recorder.lua diff --git a/.config/nvim/lua/plugins/extras/coding/recorder.lua b/.config/nvim/lua/plugins/extras/coding/recorder.lua new file mode 100644 index 00000000..b2727a49 --- /dev/null +++ b/.config/nvim/lua/plugins/extras/coding/recorder.lua @@ -0,0 +1,24 @@ +return { + "chrisgrieser/nvim-recorder", + dependencies = { "rcarriga/nvim-notify" }, + keys = { + { "q", desc = "Start Recording" }, + { "Q", desc = "Play Recording" }, + { "", desc = "Switch Slot" }, + { "cq", desc = "Edit Macro" }, + { "yq", desc = "Yank Macro" }, + { "dq", desc = "Delete All Macros" }, + }, + opts = { + useNerdFontsIcons = false, + slots = { "a", "b", "c", "d" }, + mapping = { + startStopRecording = "q", + playMacro = "Q", + editMacro = "cq", + switchSlot = "", + deleteAllMacros = "dq", + yankMacro = "yq", + }, + }, +}