diff options
author | Justine Smithies <justine@smithies.me.uk> | 2025-02-01 20:50:12 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2025-02-01 20:50:12 +0000 |
commit | f92494ff0d614cef57e22e0b476fb834e6d1b71d (patch) | |
tree | fcb97358fadb4db06b1f4575b95d330d4288c3d9 /.config | |
parent | d02cd2d90e2fb01ff1c9cd1ba26d3596d7782f7f (diff) |
Changed the way the total number of plugins is collected for the Alpha dashboard.
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/lua/plugins/alpha.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/lua/plugins/alpha.lua b/.config/nvim/lua/plugins/alpha.lua index acec7c6..dc1a2c1 100644 --- a/.config/nvim/lua/plugins/alpha.lua +++ b/.config/nvim/lua/plugins/alpha.lua @@ -23,7 +23,7 @@ local logo = { } local function info_value() - local total_plugins = " Total plugins " .. vim.fn.len(vim.fn.globpath("~/.local/share/nvim/lazy", "*", 0, 1)) + local total_plugins = " Total plugins " .. #vim.tbl_keys(require("lazy").plugins()) local datetime = os.date(' %d-%m-%Y') local version = vim.version() local nvim_version_info = ' v' .. version.major .. '.' .. version.minor .. '.' .. version.patch |