mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-16 07:04:28 +00:00
remove blink and update splash
This commit is contained in:
parent
765ac8ab85
commit
a79a9a6bff
2 changed files with 31 additions and 165 deletions
|
|
@ -3,28 +3,40 @@ return {
|
|||
event = "VimEnter",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
-- Calculate vertical padding to center the dashboard
|
||||
local header_art = {
|
||||
" ██▒ █▓ ██▓ ███▄ ▄███▓",
|
||||
"▓██░ █▒▓██▒▓██▒▀█▀ ██▒",
|
||||
" ▓██ █▒░▒██▒▓██ ▓██░",
|
||||
" ▒██ █░░░██░▒██ ▒██ ",
|
||||
" ▒▀█░ ░██░▒██▒ ░██▒",
|
||||
" ░ ▐░ ░▓ ░ ▒░ ░ ░",
|
||||
" ░ ░░ ▒ ░░ ░ ░",
|
||||
" ░░ ▒ ░░ ░ ",
|
||||
" ░ ░ ░ ",
|
||||
" ░ ",
|
||||
}
|
||||
local center_items = 6
|
||||
local content_height = #header_art + 2 + (center_items * 2) -- header + spacing + center items
|
||||
local win_height = vim.fn.winheight(0)
|
||||
local padding = math.max(0, math.floor((win_height - content_height) / 2))
|
||||
|
||||
local header = {}
|
||||
for _ = 1, padding do
|
||||
table.insert(header, "")
|
||||
end
|
||||
for _, line in ipairs(header_art) do
|
||||
table.insert(header, line)
|
||||
end
|
||||
table.insert(header, "")
|
||||
table.insert(header, "")
|
||||
|
||||
vim.api.nvim_set_hl(0, "DashboardHeader", { fg = "#83a598" })
|
||||
|
||||
require("dashboard").setup({
|
||||
theme = "doom",
|
||||
config = {
|
||||
header = {
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
" ██▒ █▓ ██▓ ███▄ ▄███▓",
|
||||
"▓██░ █▒▓██▒▓██▒▀█▀ ██▒",
|
||||
" ▓██ █▒░▒██▒▓██ ▓██░",
|
||||
" ▒██ █░░░██░▒██ ▒██ ",
|
||||
" ▒▀█░ ░██░▒██▒ ░██▒",
|
||||
" ░ ▐░ ░▓ ░ ▒░ ░ ░",
|
||||
" ░ ░░ ▒ ░░ ░ ░",
|
||||
" ░░ ▒ ░░ ░ ",
|
||||
" ░ ░ ░ ",
|
||||
" ░ ",
|
||||
"",
|
||||
"",
|
||||
},
|
||||
header = header,
|
||||
center = {
|
||||
{
|
||||
icon = " ",
|
||||
|
|
@ -50,12 +62,6 @@ return {
|
|||
key = "e",
|
||||
action = "Neotree toggle",
|
||||
},
|
||||
{
|
||||
icon = " ",
|
||||
desc = "Config ",
|
||||
key = "c",
|
||||
action = "edit ~/.config/nvim/init.lua",
|
||||
},
|
||||
{
|
||||
icon = " ",
|
||||
desc = "Quit ",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue