add number of plugins as footer

This commit is contained in:
Chris 2021-07-02 18:01:27 -04:00
parent 6f44077836
commit d3f7bec7fb

View file

@ -34,12 +34,19 @@ M.config = function()
} }
-- e = {description = {' Marks '}, command = 'Telescope marks'} -- e = {description = {' Marks '}, command = 'Telescope marks'}
} }
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))")
vim.api.nvim_exec([[
let g:dashboard_custom_footer = ['LuaJIT loaded '..packages..' plugins']
]], false)
-- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'}, -- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'},
-- vim.g.dashboard_session_directory = CACHE_PATH..'/session' -- vim.g.dashboard_session_directory = CACHE_PATH..'/session'
vim.g.dashboard_custom_footer = O.dashboard.footer -- vim.g.dashboard_custom_footer = O.dashboard.footer
end end
require('lv-utils').define_augroups({ require('lv-utils').define_augroups({