LunarVim/lua/lv-dashboard/init.lua

51 lines
1.6 KiB
Lua
Raw Normal View History

2021-06-28 08:37:33 +02:00
local M = {}
M.config = function()
2021-07-05 03:14:01 +02:00
vim.g.dashboard_disable_at_vimenter = 0
2021-06-28 08:37:33 +02:00
2021-07-10 03:01:23 +02:00
vim.g.dashboard_custom_header = O.plugin.dashboard.custom_header
2021-06-28 08:37:33 +02:00
2021-07-10 03:01:23 +02:00
vim.g.dashboard_default_executive = O.plugin.dashboard.search_handler
2021-06-28 08:37:33 +02:00
2021-07-10 03:01:23 +02:00
vim.g.dashboard_custom_section = O.plugin.dashboard.custom_section
-- f = {
-- description = { " Neovim Config Files" },
-- command = "Telescope find_files cwd=" .. CONFIG_PATH,
-- },
-- e = {description = {' Marks '}, command = 'Telescope marks'}
2021-07-05 03:14:01 +02:00
vim.cmd "let g:dashboard_session_directory = $HOME..'/.config/nvim/.sessions'"
vim.cmd "let packages = len(globpath('~/.local/share/nvim/site/pack/packer/start', '*', 0, 1))"
2021-06-28 08:37:33 +02:00
2021-07-05 03:14:01 +02:00
vim.api.nvim_exec(
[[
2021-07-03 00:01:27 +02:00
let g:dashboard_custom_footer = ['LuaJIT loaded '..packages..' plugins']
2021-07-05 03:14:01 +02:00
]],
false
)
2021-06-28 08:37:33 +02:00
2021-07-05 03:14:01 +02:00
-- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'},
2021-06-28 08:37:33 +02:00
2021-07-05 03:14:01 +02:00
-- vim.g.dashboard_session_directory = CACHE_PATH..'/session'
-- vim.g.dashboard_custom_footer = O.dashboard.footer
2021-06-28 08:37:33 +02:00
end
2021-07-05 03:14:01 +02:00
require("lv-utils").define_augroups {
_dashboard = {
-- seems to be nobuflisted that makes my stuff disapear will do more testing
{
"FileType",
"dashboard",
"setlocal nocursorline noswapfile synmaxcol& signcolumn=no norelativenumber nocursorcolumn nospell nolist nonumber bufhidden=wipe colorcolumn= foldcolumn=0 matchpairs= ",
},
{
"FileType",
"dashboard",
"set showtabline=0 | autocmd BufLeave <buffer> set showtabline=2",
},
{ "FileType", "dashboard", "nnoremap <silent> <buffer> q :q<CR>" },
},
}
2021-07-01 00:45:40 +02:00
2021-06-28 08:37:33 +02:00
return M