feat(nvim): add nvim-recorder module to lualine

This commit is contained in:
Sergio Laín 2023-12-31 13:20:00 +01:00
parent 0219f3fe75
commit 3d1e5fc980
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 31 additions and 20 deletions

View file

@ -83,6 +83,7 @@
"nvim-notify": { "branch": "master", "commit": "ebcdd8219e2a2cbc0a4bef68002f6867f1fde269" },
"nvim-numbertoggle": { "branch": "main", "commit": "9ab95e60ea5ec138e1b2332e0fc18b8e5de464c6" },
"nvim-puppeteer": { "branch": "main", "commit": "d7e1b2d67c89d32b6ecada88ff67b539ba09f2d7" },
"nvim-recorder": { "branch": "main", "commit": "daaae505862e816a7efe578e22d6f3d10cd7a2e6" },
"nvim-spectre": { "branch": "master", "commit": "d8906855f1949ac97b1e77aaf8d3fe12ed158ddc" },
"nvim-treesitter": { "branch": "master", "commit": "e49f1e8ef3e8450a8446cb1f2bbb53c919f60b6d" },
"nvim-treesitter-context": { "branch": "master", "commit": "652ec514d6ba8bc4a3c2de76c855fe668e2c7196" },

View file

@ -12,6 +12,7 @@
"plugins.extras.coding.debugprint",
"plugins.extras.coding.dial",
"plugins.extras.coding.multicursor",
"plugins.extras.coding.recorder",
"plugins.extras.coding.refactoring",
"plugins.extras.coding.sniprun",
"plugins.extras.coding.treesitter.endwise",

View file

@ -1,24 +1,33 @@
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",
{
"chrisgrieser/nvim-recorder",
dependencies = { "rcarriga/nvim-notify" },
event = "VeryLazy",
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 = true,
slots = { "a", "b", "c", "d" },
mapping = {
startStopRecording = "q",
playMacro = "Q",
editMacro = "cq",
switchSlot = "<C-q>",
deleteAllMacros = "dq",
yankMacro = "yq",
},
},
},
{
"nvim-lualine/lualine.nvim",
opts = function(_, opts)
table.insert(opts.sections.lualine_x, 2, require("recorder").displaySlots)
end,
},
}