notes/config/nvim.v1/lua/startify.lua

35 lines
4.2 KiB
Lua

-- startify config
-- local status_ok, indent_blankline = pcall(require, "indent_blankline")
-- if not status_ok then
-- return
-- end
local header = {
[[]],
[[██╗░░██╗░█████╗░██╗██╗░░░░░  ███╗░░░███╗███████╗░██████╗░░█████╗░████████╗██████╗░░█████╗░███╗░░██╗]],
[[██║░░██║██╔══██╗██║██║░░░░░  ████╗░████║██╔════╝██╔════╝░██╔══██╗╚══██╔══╝██╔══██╗██╔══██╗████╗░██║]],
[[███████║███████║██║██║░░░░░  ██╔████╔██║█████╗░░██║░░██╗░███████║░░░██║░░░██████╔╝██║░░██║██╔██╗██║]],
[[██╔══██║██╔══██║██║██║░░░░░  ██║╚██╔╝██║██╔══╝░░██║░░╚██╗██╔══██║░░░██║░░░██╔══██╗██║░░██║██║╚████║]],
[[██║░░██║██║░░██║██║███████╗  ██║░╚═╝░██║███████╗╚██████╔╝██║░░██║░░░██║░░░██║░░██║╚█████╔╝██║░╚███║]],
[[╚═╝░░╚═╝╚═╝░░╚═╝╚═╝╚══════╝  ╚═╝░░░░░╚═╝╚══════╝░╚═════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░╚═╝░╚════╝░╚═╝░░╚══╝]],
[[]],
}
local footer = {
[[]],
[[███████╗░█████╗░██████╗░  ░█████╗░██╗░░░██╗██████╗░███████╗██████╗░████████╗██████╗░░█████╗░███╗░░██╗]],
[[██╔════╝██╔══██╗██╔══██╗  ██╔══██╗╚██╗░██╔╝██╔══██╗██╔════╝██╔══██╗╚══██╔══╝██╔══██╗██╔══██╗████╗░██║]],
[[█████╗░░██║░░██║██████╔╝  ██║░░╚═╝░╚████╔╝░██████╦╝█████╗░░██████╔╝░░░██║░░░██████╔╝██║░░██║██╔██╗██║]],
[[██╔══╝░░██║░░██║██╔══██╗  ██║░░██╗░░╚██╔╝░░██╔══██╗██╔══╝░░██╔══██╗░░░██║░░░██╔══██╗██║░░██║██║╚████║]],
[[██║░░░░░╚█████╔╝██║░░██║  ╚█████╔╝░░░██║░░░██████╦╝███████╗██║░░██║░░░██║░░░██║░░██║╚█████╔╝██║░╚███║]],
[[╚═╝░░░░░░╚════╝░╚═╝░░╚═╝  ░╚════╝░░░░╚═╝░░░╚═════╝░╚══════╝╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░╚═╝░╚════╝░╚═╝░░╚══╝]],
[[]],
}
vim.g.startify_custom_header = vim.call('startify#center', header)
vim.g.startify_custom_footer = vim.call('startify#center', footer)
vim.cmd [[autocmd! FileType startify]]
vim.cmd [[autocmd FileType startify set laststatus=0 showtabline=0 | autocmd BufLeave <buffer> set laststatus=2 showtabline=2]]
vim.cmd [[autocmd User Startified setlocal buflisted]]