X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/a33276da8c7b30f2f52f07fbc05b0d86d0d6d4e2..d447e940707078bcfd9e40f6ca8da2746a4cc058:/nvim/lua/plugins/ui.lua diff --git a/nvim/lua/plugins/ui.lua b/nvim/lua/plugins/ui.lua index 61fad3b..42f2db7 100644 --- a/nvim/lua/plugins/ui.lua +++ b/nvim/lua/plugins/ui.lua @@ -8,7 +8,7 @@ return { ---@type BufferlineConfig opts = { options = { - always_show_bufferline = true, + always_show_bufferline = false, }, }, }, @@ -58,9 +58,46 @@ return { }, { "mini.indentscope", + opts = { + draw = { + animation = require("mini.indentscope").gen_animation.linear({ duration = 10 }), + }, + }, }, { "alpha-nvim", + opts = function() + local dashboard = require("alpha.themes.dashboard") + local logo = [[ + ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z + ██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║ ██║██║████╗ ████║ Z + ██║ ███████║ ███╔╝ ╚████╔╝ ██║ ██║██║██╔████╔██║ z + ██║ ██╔══██║ ███╔╝ ╚██╔╝ ╚██╗ ██╔╝██║██║╚██╔╝██║ z + ███████╗██║ ██║███████╗ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║ + ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ + ]] + + dashboard.section.header.val = vim.split(logo, "\n") + dashboard.section.buttons.val = { + dashboard.button("f", " " .. " Find file", ":Telescope find_files "), + dashboard.button("n", " " .. " New file", ":ene startinsert "), + dashboard.button("r", " " .. " Recent files", ":Telescope oldfiles "), + dashboard.button("g", " " .. " Find text", ":Telescope live_grep "), + dashboard.button("c", " " .. " Config", ":e $MYVIMRC "), + dashboard.button("s", " " .. " Restore Session", [[:lua require("persistence").load() ]]), + dashboard.button("l", "󰒲 " .. " Lazy", ":Lazy"), + dashboard.button("q", " " .. " Close", ":bdelete"), + } + for _, button in ipairs(dashboard.section.buttons.val) do + button.opts.hl = "AlphaButtons" + button.opts.hl_shortcut = "AlphaShortcut" + end + dashboard.section.footer.opts.hl = "Type" + dashboard.section.header.opts.hl = "AlphaHeader" + dashboard.section.buttons.opts.hl = "AlphaButtons" + dashboard.opts.layout[1].val = 8 + return dashboard + end, }, { "nvim-navic",