From 650c9ffa51712815a676cead65939ede63916acd Mon Sep 17 00:00:00 2001 From: Ward Truyen Date: Sun, 26 Apr 2026 17:29:21 +0200 Subject: [PATCH] feat: checkhealth and cwd in footer --- lua/ward/plugins/alpha-dashboard.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/ward/plugins/alpha-dashboard.lua b/lua/ward/plugins/alpha-dashboard.lua index 57da37d..36c6396 100644 --- a/lua/ward/plugins/alpha-dashboard.lua +++ b/lua/ward/plugins/alpha-dashboard.lua @@ -32,6 +32,7 @@ return { button("f", " Find Files", ":Telescope find_files "), button("o", " Recent Files", "Telescope oldfiles"), button("t", " Terminal", ":terminali"), + button("h", "⛨ check health", ":checkhealth"), button("s", "S Find text/string", ":Telescope live_grep "), button("m", " Bookmarks", ":Telescope marks "), button("c", " Neovim config", "e ~/.config/nvim/ | cd %:p:h"), @@ -40,11 +41,12 @@ return { } local function footer() - local footer_datetime = os.date(" %m-%d-%Y  %H:%M:%S") + local footer_datetime = os.date("%m-%d-%Y %H:%M:%S") local version = vim.version() - local nvim_version_info = "  v" .. version.major .. "." .. version.minor .. "." .. version.patch + local nvim_version_info = " v" .. version.major .. "." .. version.minor .. "." .. version.patch -- local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100) - local value = footer_datetime .. "  Plugins " .. total_plugins .. nvim_version_info + local root_dir = " ⌂" .. vim.fn['getcwd']() + local value = footer_datetime .. " Plugins " .. total_plugins .. nvim_version_info .. root_dir return value end