From 407fd0e14613761486550b0b93fc893073944592 Mon Sep 17 00:00:00 2001 From: Dario48true Date: Fri, 3 Nov 2023 18:20:16 +0100 Subject: [PATCH] changed to alpha-nvim, it broke but whatever --- lua/Dario48/plugins/alpha.lua | 40 +++++++++++++++++++++++++ lua/Dario48/plugins/dashboard.back | 2 +- lua/Dario48/plugins/dashboard.lua | 47 ------------------------------ 3 files changed, 41 insertions(+), 48 deletions(-) create mode 100644 lua/Dario48/plugins/alpha.lua delete mode 100644 lua/Dario48/plugins/dashboard.lua diff --git a/lua/Dario48/plugins/alpha.lua b/lua/Dario48/plugins/alpha.lua new file mode 100644 index 0000000..58d86de --- /dev/null +++ b/lua/Dario48/plugins/alpha.lua @@ -0,0 +1,40 @@ +return { + 'goolord/alpha-nvim', + config = function() + local alpha = require("alpha") + local dashboard = require("alpha.themes.dashboard") + + -- Set header + dashboard.section.header.val = { + [[ /\\\\\ /\\\ /\\\\\\\\\\\\\\\ /\\\\\ /\\\ /\\\ /\\\\\\\\\\\ /\\\\ /\\\\ ]], + [[ \/\\\\\\ \/\\\ \/\\\/////////// /\\\///\\\ \/\\\ \/\\\ \/////\\\/// \/\\\\\\ /\\\\\\ ]], + [[ \/\\\/\\\ \/\\\ \/\\\ /\\\/ \///\\\ \//\\\ /\\\ \/\\\ \/\\\//\\\ /\\\//\\\ ]], + [[ \/\\\//\\\ \/\\\ \/\\\\\\\\\\\ /\\\ \//\\\ \//\\\ /\\\ \/\\\ \/\\\\///\\\/\\\/ \/\\\ ]], + [[ \/\\\\//\\\\/\\\ \/\\\/////// \/\\\ \/\\\ \//\\\ /\\\ \/\\\ \/\\\ \///\\\/ \/\\\ ]], + [[ \/\\\ \//\\\/\\\ \/\\\ \//\\\ /\\\ \//\\\/\\\ \/\\\ \/\\\ \/// \/\\\ ]], + [[ \/\\\ \//\\\\\\ \/\\\ \///\\\ /\\\ \//\\\\\ \/\\\ \/\\\ \/\\\ ]], + [[ \/\\\ \//\\\\\ \/\\\\\\\\\\\\\\\ \///\\\\\/ \//\\\ /\\\\\\\\\\\ \/\\\ \/\\\ ]], + [[ \/// \///// \/////////////// \///// \/// \/////////// \/// \/// ]], + } + + -- Set menu + dashboard.section.buttons.val= { + type = "group", + val = { + { type = "text", val = "Quick links", opts = { hl = "SpecialComment", position = "center" } }, + { type = "padding", val = 1 }, + dashboard.button("e", " New file", "ene"), + dashboard.button("u", " Update plugins", "Lazy sync"), + dashboard.button("q", "󰩈 Quit", "qa"), + }, + position = "center", + } + -- Send config to alpha + alpha.setup(dashboard.opts) + + -- Disable folding on alpha buffer + vim.cmd([[ + autocmd FileType alpha setlocal nofoldenable + ]]) + end +}; diff --git a/lua/Dario48/plugins/dashboard.back b/lua/Dario48/plugins/dashboard.back index df8b145..8936064 100644 --- a/lua/Dario48/plugins/dashboard.back +++ b/lua/Dario48/plugins/dashboard.back @@ -1,4 +1,4 @@ -[[__/\\\\\_____/\\\__/\\\\\\\\\\\\\\\_______/\\\\\_______/\\\________/\\\__/\\\\\\\\\\\__/\\\\____________/\\\\_________]], + [[__/\\\\\_____/\\\__/\\\\\\\\\\\\\\\_______/\\\\\_______/\\\________/\\\__/\\\\\\\\\\\__/\\\\____________/\\\\_________]], [[__\/\\\\\\___\/\\\_\/\\\///////////______/\\\///\\\____\/\\\_______\/\\\_\/////\\\///__\/\\\\\\________/\\\\\\________]], [[___\/\\\/\\\__\/\\\_\/\\\_______________/\\\/__\///\\\__\//\\\______/\\\______\/\\\_____\/\\\//\\\____/\\\//\\\_______]], [[____\/\\\//\\\_\/\\\_\/\\\\\\\\\\\______/\\\______\//\\\__\//\\\____/\\\_______\/\\\_____\/\\\\///\\\/\\\/_\/\\\______]], diff --git a/lua/Dario48/plugins/dashboard.lua b/lua/Dario48/plugins/dashboard.lua deleted file mode 100644 index 48cec41..0000000 --- a/lua/Dario48/plugins/dashboard.lua +++ /dev/null @@ -1,47 +0,0 @@ -return { - { - 'nvimdev/dashboard-nvim', - event = 'VimEnter', - config = function() - require('dashboard').setup { - theme = 'doom', - config = { - header = { - '\x1b[38;2;07;8D;70m__/\\\\\\\\\\_____/\\\\\\__/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\_______/\\\\\\\\\\_______/\\\\\\________/\\\\\\__/\\\\\\\\\\\\\\\\\\\\\\__/\\\\\\\\____________/\\\\\\\\_________', - '__\\/\\\\\\\\\\\\___\\/\\\\\\_\\/\\\\\\///////////______/\\\\\\///\\\\\\____\\/\\\\\\_______\\/\\\\\\_\\/////\\\\\\///__\\/\\\\\\\\\\\\________/\\\\\\\\\\\\________', - '___\\/\\\\\\/\\\\\\__\\/\\\\\\_\\/\\\\\\_______________/\\\\\\/__\\///\\\\\\__\\//\\\\\\______/\\\\\\______\\/\\\\\\_____\\/\\\\\\//\\\\\\____/\\\\\\//\\\\\\_______', - '____\\/\\\\\\//\\\\\\_\\/\\\\\\_\\/\\\\\\\\\\\\\\\\\\\\\\______/\\\\\\______\\//\\\\\\__\\//\\\\\\____/\\\\\\_______\\/\\\\\\_____\\/\\\\\\\\///\\\\\\/\\\\\\/_\\/\\\\\\______', - '_____\\/\\\\\\\\//\\\\\\\\/\\\\\\_\\/\\\\\\///////______\\/\\\\\\_______\\/\\\\\\___\\//\\\\\\__/\\\\\\________\\/\\\\\\_____\\/\\\\\\__\\///\\\\\\/___\\/\\\\\\_____', - '______\\/\\\\\\_\\//\\\\\\/\\\\\\_\\/\\\\\\_____________\\//\\\\\\______/\\\\\\_____\\//\\\\\\/\\\\\\_________\\/\\\\\\_____\\/\\\\\\____\\///_____\\/\\\\\\____', - '_______\\/\\\\\\__\\//\\\\\\\\\\\\_\\/\\\\\\______________\\///\\\\\\__/\\\\\\________\\//\\\\\\\\\\__________\\/\\\\\\_____\\/\\\\\\_____________\\/\\\\\\___', - '________\\/\\\\\\___\\//\\\\\\\\\\_\\/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\____\\///\\\\\\\\\\/__________\\//\\\\\\________/\\\\\\\\\\\\\\\\\\\\\\_\\/\\\\\\_____________\\/\\\\\\__', - '_________\\///_____\\/////__\\///////////////_______\\/////_____________\\///________\\///////////__\\///______________\\///__', - }, --your header - center = { - { - icon = ' ', - icon_hl = 'Title', - desc = 'Find File ', - desc_hl = 'String', - key = 'b', - keymap = 'SPC f f', - key_hl = 'Number', - key_format = ' %s', -- remove default surrounding `[]` - action = 'lua print(2)' - }, - { - icon = ' ', - desc = 'Find Dotfiles', - key = 'f', - keymap = 'SPC f d', - key_format = ' %s', -- remove default surrounding `[]` - action = 'lua print(3)' - }, - }, - footer = {} --your footer - } - } - end, - dependencies = { {'nvim-tree/nvim-web-devicons'}} - } -}