feat(nvim): add recorder extra to help with macros

This commit is contained in:
Sergio Laín 2023-12-23 17:38:30 +01:00
parent 8e8a749bae
commit d359eb2c24
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -0,0 +1,24 @@
return {
"chrisgrieser/nvim-recorder",
dependencies = { "rcarriga/nvim-notify" },
keys = {
{ "q", desc = "Start Recording" },
{ "Q", desc = "Play Recording" },
{ "<C-q>", 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 = "<C-q>",
deleteAllMacros = "dq",
yankMacro = "yq",
},
},
}