feat: checkhealth and cwd in footer
This commit is contained in:
@@ -32,6 +32,7 @@ return {
|
|||||||
button("f", " Find Files", ":Telescope find_files <CR>"),
|
button("f", " Find Files", ":Telescope find_files <CR>"),
|
||||||
button("o", " Recent Files", "<cmd>Telescope oldfiles<cr>"),
|
button("o", " Recent Files", "<cmd>Telescope oldfiles<cr>"),
|
||||||
button("t", " Terminal", ":terminal<CR>i"),
|
button("t", " Terminal", ":terminal<CR>i"),
|
||||||
|
button("h", "⛨ check health", ":checkhealth<CR>"),
|
||||||
button("s", "S Find text/string", ":Telescope live_grep <CR>"),
|
button("s", "S Find text/string", ":Telescope live_grep <CR>"),
|
||||||
button("m", " Bookmarks", ":Telescope marks <CR>"),
|
button("m", " Bookmarks", ":Telescope marks <CR>"),
|
||||||
button("c", " Neovim config", "<cmd>e ~/.config/nvim/ | cd %:p:h<cr>"),
|
button("c", " Neovim config", "<cmd>e ~/.config/nvim/ | cd %:p:h<cr>"),
|
||||||
@@ -40,11 +41,12 @@ return {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local function footer()
|
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 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 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
|
return value
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user