mirror of
https://github.com/pnx/dotfiles
synced 2026-08-16 08:58:11 +02:00
nvim: adding goolord/alpha-nvim
This commit is contained in:
parent
8efe712565
commit
c89f88c2b1
3 changed files with 32 additions and 0 deletions
|
|
@ -10,6 +10,32 @@ return {
|
||||||
require("mason").setup(opts)
|
require("mason").setup(opts)
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"goolord/alpha-nvim",
|
||||||
|
config = function()
|
||||||
|
local icons = require'user.icons'
|
||||||
|
local alpha = require'alpha'
|
||||||
|
local dashboard = require'alpha.themes.dashboard'
|
||||||
|
|
||||||
|
dashboard.section.header.val = {
|
||||||
|
[[ __ ]],
|
||||||
|
[[ ___ ___ ___ __ __ /\_\ ___ ___ ]],
|
||||||
|
[[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]],
|
||||||
|
[[/\ \/\ \/\ __//\ \_\ \ \ \_/ |\ \ \/\ \/\ \/\ \ ]],
|
||||||
|
[[\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\]],
|
||||||
|
[[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]],
|
||||||
|
}
|
||||||
|
|
||||||
|
dashboard.section.buttons.val = {
|
||||||
|
dashboard.button("e", icons.files.text .. " New file" , ":ene <BAR> startinsert<CR>"),
|
||||||
|
dashboard.button("s", icons.search .. " Search files" , ":Telescope find_files<CR>"),
|
||||||
|
dashboard.button("o", icons.search .. " Old files" , ":Telescope oldfiles<CR>"),
|
||||||
|
dashboard.button("q", icons.close .. " Quit" , ":qa<CR>"),
|
||||||
|
}
|
||||||
|
|
||||||
|
alpha.setup(dashboard.config)
|
||||||
|
end,
|
||||||
|
},
|
||||||
-- Icons
|
-- Icons
|
||||||
{
|
{
|
||||||
'nvim-tree/nvim-web-devicons',
|
'nvim-tree/nvim-web-devicons',
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,10 @@ return {
|
||||||
return {
|
return {
|
||||||
-- Align current relative number to the right.
|
-- Align current relative number to the right.
|
||||||
relculright = true,
|
relculright = true,
|
||||||
|
ft_ignore = {
|
||||||
|
'help',
|
||||||
|
'alpha'
|
||||||
|
},
|
||||||
segments = {
|
segments = {
|
||||||
{ text = { " " } },
|
{ text = { " " } },
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,11 @@ return {
|
||||||
disabled_filetypes = {
|
disabled_filetypes = {
|
||||||
statusline = {
|
statusline = {
|
||||||
"dashboard",
|
"dashboard",
|
||||||
|
"alpha",
|
||||||
},
|
},
|
||||||
winbar = {
|
winbar = {
|
||||||
"neo-tree",
|
"neo-tree",
|
||||||
|
"alpha"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
-- theme = "catppuccin"
|
-- theme = "catppuccin"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue