Explorar el Código

add number of plugins as footer

Chris hace 4 años
padre
commit
d3f7bec7fb
Se han modificado 1 ficheros con 9 adiciones y 2 borrados
  1. 9 2
      lua/lv-dashboard/init.lua

+ 9 - 2
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({