diff options
author | Chris <[email protected]> | 2021-07-02 18:01:27 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2021-07-02 18:01:27 -0400 |
commit | d3f7bec7fbb26096a475a7c543a6cafa06a2b076 (patch) | |
tree | cf57970f57eea9612d6a5df963c024fd3de8ed60 | |
parent | 6f440778369231cfb7b0ee51f71fc2321528c0ac (diff) |
add number of plugins as footer
-rw-r--r-- | lua/lv-dashboard/init.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lua/lv-dashboard/init.lua b/lua/lv-dashboard/init.lua index 0a86da5c..e577fdc3 100644 --- a/lua/lv-dashboard/init.lua +++ b/lua/lv-dashboard/init.lua @@ -34,12 +34,19 @@ M.config = function() } -- 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))") - -- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'}, + vim.api.nvim_exec([[ + let g:dashboard_custom_footer = ['LuaJIT loaded '..packages..' plugins'] +]], false) + -- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'}, -- 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 require('lv-utils').define_augroups({ |