local autocmd = require 'utils.autocmd' vim.g.dashboard_default_executive = 'telescope' -- local function split(text) -- local parts = {} -- for part in text:gmatch("[^\n]+") do -- table.insert(parts, part) -- end -- return parts -- end -- vim.g.dashboard_custom_header = split(vim.fn.system("figlet -m 2 -f slant Neovim")) -- vim.g.dashboard_custom_header = { -- ' ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗', -- ' ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║', -- ' ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║', -- ' ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║', -- ' ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║', -- ' ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝', -- } vim.g.dashboard_custom_header = { [[ _ __ _ ]], [[ / | / /___ ____ _ __ (_)____ ___ ]], [[ / |/ // _ \ / __ \ | / // // __ `__ \]], [[ / /| // __// /_/ / |/ // // / / / / /]], [[/_/ |_/ \___/ \____/|___//_//_/ /_/ /_/ ]], } autocmd('dashboard-commands', { [[FileType dashboard nmap ss :SessionSave]], [[FileType dashboard nmap sl :SessionLoad]], [[FileType dashboard nnoremap fh :DashboardFindHistory]], [[FileType dashboard nnoremap ff :DashboardFindFile]], [[FileType dashboard nnoremap tc :DashboardChangeColorscheme]], [[FileType dashboard nnoremap fa :DashboardFindWord]], [[FileType dashboard nnoremap fb :DashboardJumpMark]], [[FileType dashboard nnoremap cn :DashboardNewFile]], }, true)