diff --git a/.config/nvim/lua/plugins/extras/editor/marks/arena.lua b/.config/nvim/lua/plugins/extras/editor/marks/arena.lua new file mode 100644 index 00000000..26c7c1b0 --- /dev/null +++ b/.config/nvim/lua/plugins/extras/editor/marks/arena.lua @@ -0,0 +1,43 @@ +return { + { + "dzfrias/arena.nvim", + event = "BufWinEnter", + opts = { + per_project = true, + devicons = true, + }, + -- stylua: ignore + keys = { + { "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, + }, +} diff --git a/.config/nvim/lua/plugins/extras/ui/showkeys.lua b/.config/nvim/lua/plugins/extras/ui/showkeys.lua new file mode 100644 index 00000000..9a801622 --- /dev/null +++ b/.config/nvim/lua/plugins/extras/ui/showkeys.lua @@ -0,0 +1,8 @@ +return { + "nvchad/showkeys", + cmd = "ShowkeysToggle", + opts = { + timeout = 1, + maxkeys = 8, + }, +}