feat: checkhealth and cwd in footer

This commit is contained in:
Ward Truyen
2026-04-26 17:29:21 +02:00
parent ee59bde43e
commit 650c9ffa51

View File

@@ -32,6 +32,7 @@ return {
button("f", " Find Files", ":Telescope find_files <CR>"),
button("o", " Recent Files", "<cmd>Telescope oldfiles<cr>"),
button("t", " Terminal", ":terminal<CR>i"),
button("h", "⛨ check health", ":checkhealth<CR>"),
button("s", "S Find text/string", ":Telescope live_grep <CR>"),
button("m", " Bookmarks", ":Telescope marks <CR>"),
button("c", " Neovim config", "<cmd>e ~/.config/nvim/ | cd %:p:h<cr>"),
@@ -44,7 +45,8 @@ return {
local version = vim.version()
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