2022-01-10 09:55:15 -06:00
|
|
|
local g = vim.g
|
|
|
|
local fn = vim.fn
|
|
|
|
|
|
|
|
local plugins_count = fn.len(fn.globpath("~/.local/share/nvim/site/pack/packer/start", "*", 0, 1))
|
|
|
|
|
|
|
|
g.dashboard_disable_statusline = 1
|
|
|
|
g.dashboard_default_executive = "telescope"
|
|
|
|
|
|
|
|
g.dashboard_custom_header = {
|
|
|
|
" ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗",
|
|
|
|
" ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║",
|
|
|
|
" ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║",
|
|
|
|
" ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║",
|
|
|
|
" ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║",
|
|
|
|
" ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝",
|
|
|
|
}
|
|
|
|
|
|
|
|
g.dashboard_custom_section = {
|
2022-01-10 10:40:48 -06:00
|
|
|
a = { description = { " Find File SPC t f" }, command = "Telescope find_files" },
|
|
|
|
b = { description = { " Find directory SPC t d" }, command = "Telescope find_directories" },
|
|
|
|
c = { description = { " Recents SPC t o" }, command = "Telescope oldfiles" },
|
|
|
|
d = { description = { " Find Word SPC t w" }, command = "Telescope live_grep" },
|
2022-01-10 09:55:15 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
g.dashboard_custom_footer = {
|
|
|
|
"Loaded " .. plugins_count .. " plugins! ",
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Disable statusline and cursorline in dashboard.
|
2022-03-18 06:24:07 -05:00
|
|
|
vim.cmd('autocmd BufEnter * if &ft is "dashboard" | set laststatus=0 | else | set laststatus=3 | endif')
|
2022-01-10 09:55:15 -06:00
|
|
|
vim.cmd('autocmd BufEnter * if &ft is "dashboard" | set nocursorline | endif')
|