changed to alpha-nvim, it broke but whatever
This commit is contained in:
parent
a1942c5a97
commit
407fd0e146
3 changed files with 41 additions and 48 deletions
40
lua/Dario48/plugins/alpha.lua
Normal file
40
lua/Dario48/plugins/alpha.lua
Normal file
|
@ -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", "<cmd>ene<CR>"),
|
||||
dashboard.button("u", " Update plugins", "<cmd>Lazy sync<CR>"),
|
||||
dashboard.button("q", " Quit", "<cmd>qa<CR>"),
|
||||
},
|
||||
position = "center",
|
||||
}
|
||||
-- Send config to alpha
|
||||
alpha.setup(dashboard.opts)
|
||||
|
||||
-- Disable folding on alpha buffer
|
||||
vim.cmd([[
|
||||
autocmd FileType alpha setlocal nofoldenable
|
||||
]])
|
||||
end
|
||||
};
|
|
@ -1,4 +1,4 @@
|
|||
[[__/\\\\\_____/\\\__/\\\\\\\\\\\\\\\_______/\\\\\_______/\\\________/\\\__/\\\\\\\\\\\__/\\\\____________/\\\\_________]],
|
||||
[[__/\\\\\_____/\\\__/\\\\\\\\\\\\\\\_______/\\\\\_______/\\\________/\\\__/\\\\\\\\\\\__/\\\\____________/\\\\_________]],
|
||||
[[__\/\\\\\\___\/\\\_\/\\\///////////______/\\\///\\\____\/\\\_______\/\\\_\/////\\\///__\/\\\\\\________/\\\\\\________]],
|
||||
[[___\/\\\/\\\__\/\\\_\/\\\_______________/\\\/__\///\\\__\//\\\______/\\\______\/\\\_____\/\\\//\\\____/\\\//\\\_______]],
|
||||
[[____\/\\\//\\\_\/\\\_\/\\\\\\\\\\\______/\\\______\//\\\__\//\\\____/\\\_______\/\\\_____\/\\\\///\\\/\\\/_\/\\\______]],
|
||||
|
|
|
@ -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'}}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue