✨ feat(nvim): add nvim-recorder module to lualine
This commit is contained in:
parent
0219f3fe75
commit
3d1e5fc980
3 changed files with 31 additions and 20 deletions
|
@ -83,6 +83,7 @@
|
||||||
"nvim-notify": { "branch": "master", "commit": "ebcdd8219e2a2cbc0a4bef68002f6867f1fde269" },
|
"nvim-notify": { "branch": "master", "commit": "ebcdd8219e2a2cbc0a4bef68002f6867f1fde269" },
|
||||||
"nvim-numbertoggle": { "branch": "main", "commit": "9ab95e60ea5ec138e1b2332e0fc18b8e5de464c6" },
|
"nvim-numbertoggle": { "branch": "main", "commit": "9ab95e60ea5ec138e1b2332e0fc18b8e5de464c6" },
|
||||||
"nvim-puppeteer": { "branch": "main", "commit": "d7e1b2d67c89d32b6ecada88ff67b539ba09f2d7" },
|
"nvim-puppeteer": { "branch": "main", "commit": "d7e1b2d67c89d32b6ecada88ff67b539ba09f2d7" },
|
||||||
|
"nvim-recorder": { "branch": "main", "commit": "daaae505862e816a7efe578e22d6f3d10cd7a2e6" },
|
||||||
"nvim-spectre": { "branch": "master", "commit": "d8906855f1949ac97b1e77aaf8d3fe12ed158ddc" },
|
"nvim-spectre": { "branch": "master", "commit": "d8906855f1949ac97b1e77aaf8d3fe12ed158ddc" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "e49f1e8ef3e8450a8446cb1f2bbb53c919f60b6d" },
|
"nvim-treesitter": { "branch": "master", "commit": "e49f1e8ef3e8450a8446cb1f2bbb53c919f60b6d" },
|
||||||
"nvim-treesitter-context": { "branch": "master", "commit": "652ec514d6ba8bc4a3c2de76c855fe668e2c7196" },
|
"nvim-treesitter-context": { "branch": "master", "commit": "652ec514d6ba8bc4a3c2de76c855fe668e2c7196" },
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
"plugins.extras.coding.debugprint",
|
"plugins.extras.coding.debugprint",
|
||||||
"plugins.extras.coding.dial",
|
"plugins.extras.coding.dial",
|
||||||
"plugins.extras.coding.multicursor",
|
"plugins.extras.coding.multicursor",
|
||||||
|
"plugins.extras.coding.recorder",
|
||||||
"plugins.extras.coding.refactoring",
|
"plugins.extras.coding.refactoring",
|
||||||
"plugins.extras.coding.sniprun",
|
"plugins.extras.coding.sniprun",
|
||||||
"plugins.extras.coding.treesitter.endwise",
|
"plugins.extras.coding.treesitter.endwise",
|
||||||
|
|
|
@ -1,24 +1,33 @@
|
||||||
return {
|
return {
|
||||||
"chrisgrieser/nvim-recorder",
|
{
|
||||||
dependencies = { "rcarriga/nvim-notify" },
|
"chrisgrieser/nvim-recorder",
|
||||||
keys = {
|
dependencies = { "rcarriga/nvim-notify" },
|
||||||
{ "q", desc = "Start Recording" },
|
event = "VeryLazy",
|
||||||
{ "Q", desc = "Play Recording" },
|
keys = {
|
||||||
{ "<C-q>", desc = "Switch Slot" },
|
{ "q", desc = "Start Recording" },
|
||||||
{ "cq", desc = "Edit Macro" },
|
{ "Q", desc = "Play Recording" },
|
||||||
{ "yq", desc = "Yank Macro" },
|
{ "<C-q>", desc = "Switch Slot" },
|
||||||
{ "dq", desc = "Delete All Macros" },
|
{ "cq", desc = "Edit Macro" },
|
||||||
},
|
{ "yq", desc = "Yank Macro" },
|
||||||
opts = {
|
{ "dq", desc = "Delete All Macros" },
|
||||||
useNerdFontsIcons = false,
|
},
|
||||||
slots = { "a", "b", "c", "d" },
|
opts = {
|
||||||
mapping = {
|
useNerdFontsIcons = true,
|
||||||
startStopRecording = "q",
|
slots = { "a", "b", "c", "d" },
|
||||||
playMacro = "Q",
|
mapping = {
|
||||||
editMacro = "cq",
|
startStopRecording = "q",
|
||||||
switchSlot = "<C-q>",
|
playMacro = "Q",
|
||||||
deleteAllMacros = "dq",
|
editMacro = "cq",
|
||||||
yankMacro = "yq",
|
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,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue