✨ feat(nvim): new extras: showkeys and arena
This commit is contained in:
parent
b57c85169a
commit
667047ed6e
2 changed files with 51 additions and 0 deletions
43
.config/nvim/lua/plugins/extras/editor/marks/arena.lua
Normal file
43
.config/nvim/lua/plugins/extras/editor/marks/arena.lua
Normal file
|
@ -0,0 +1,43 @@
|
|||
return {
|
||||
{
|
||||
"dzfrias/arena.nvim",
|
||||
event = "BufWinEnter",
|
||||
opts = {
|
||||
per_project = true,
|
||||
devicons = true,
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>m", function() require("arena").toggle() end, desc = "Marks" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
optional = true,
|
||||
opts = function(_, dashboard)
|
||||
-- stylua: ignore
|
||||
local button = dashboard.button("m", " " .. " Marks", function() require("arena").toggle() end)
|
||||
button.opts.hl = "AlphaButtons"
|
||||
button.opts.hl_shortcut = "AlphaShortcut"
|
||||
table.insert(dashboard.section.buttons.val, 5, button)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
-- stylua: ignore
|
||||
local arrow = {
|
||||
action = function() require("arena").toggle() end,
|
||||
desc = " Marks",
|
||||
icon = " ",
|
||||
key = "m",
|
||||
}
|
||||
|
||||
arrow.desc = arrow.desc .. string.rep(" ", 43 - #arrow.desc)
|
||||
arrow.key_format = " %s"
|
||||
|
||||
table.insert(opts.config.center, 5, arrow)
|
||||
end,
|
||||
},
|
||||
}
|
8
.config/nvim/lua/plugins/extras/ui/showkeys.lua
Normal file
8
.config/nvim/lua/plugins/extras/ui/showkeys.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
return {
|
||||
"nvchad/showkeys",
|
||||
cmd = "ShowkeysToggle",
|
||||
opts = {
|
||||
timeout = 1,
|
||||
maxkeys = 8,
|
||||
},
|
||||
}
|
Loading…
Add table
Reference in a new issue