nvim/lua/cosmic/plugins/dashboard/init.lua
Matthew Leong daaafc1f8d
Lazy.nvim (#88)
* feat: init lazy.nvim

* refactor: easy plugin init

* feat: user defined plugins

* refactor: clean up user config

* refactor: clean up lsp plugins

* fix: lsp signature

* fix: null ls user config

* feat: replace commands

* feat: optimize lazy loading

* fix: lsp_signature working

* fix: documentation hover/sig help

* fix: autopairs

* feat: clean up luasnips

* fix auto complete

* moar laziness

* feat: add markdown_inline to ensured_installed for TS

* clean up

* clean up auto-session
2022-12-29 08:34:17 -08:00

52 lines
2.6 KiB
Lua

local user_config = require('cosmic.core.user')
local icons = require('cosmic.utils.icons')
local g = vim.g
return {
'glepnir/dashboard-nvim',
config = function()
g.dashboard_custom_header = {
'',
'',
'',
'',
'',
'',
' ██████╗ ██████╗ ███████╗███╗ ███╗██╗ ██████╗███╗ ██╗██╗ ██╗██╗███╗ ███╗',
'██╔════╝██╔═══██╗██╔════╝████╗ ████║██║██╔════╝████╗ ██║██║ ██║██║████╗ ████║',
'██║ ██║ ██║███████╗██╔████╔██║██║██║ ██╔██╗ ██║██║ ██║██║██╔████╔██║',
'██║ ██║ ██║╚════██║██║╚██╔╝██║██║██║ ██║╚██╗██║╚██╗ ██╔╝██║██║╚██╔╝██║',
'╚██████╗╚██████╔╝███████║██║ ╚═╝ ██║██║╚██████╗██║ ╚████║ ╚████╔╝ ██║██║ ╚═╝ ██║',
' ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═════╝╚═╝ ╚═══╝ ╚═══╝ ╚═╝╚═╝ ╚═╝',
'',
'',
'',
}
g.dashboard_default_executive = 'telescope'
g.dashboard_session_directory = vim.fn.stdpath('data') .. '/sessions'
g.dashboard_custom_section = {
find_file = {
description = { icons.file1 .. ' Find File <leader>ff' },
command = 'lua require("cosmic.plugins.telescope.mappings").project_files()',
},
file_explorer = {
description = { icons.file2 .. ' File Manager <C-n> ' },
command = 'NvimTreeToggle',
},
find_string = {
description = { icons.word .. ' Grep String <leader>fs' },
command = 'Telescope grep_string',
},
last_session = {
description = { icons.clock .. ' Load Session <leader>sl' },
command = 'lua vim.cmd(":silent RestoreSession")',
},
}
g.dashboard_custom_footer = { '💫 github.com/CosmicNvim/CosmicNvim' }
end,
enabled = not vim.tbl_contains(user_config.disable_builtin_plugins, 'dashboard'),
}