Updated lualine

This commit is contained in:
2024-03-18 11:53:23 +01:00
parent f8ad73b237
commit 7208b24e1d

View File

@@ -74,6 +74,9 @@ return {
"branch", "branch",
icon = "", icon = "",
color = { fg = colors.violet, gui = "bold" }, color = { fg = colors.violet, gui = "bold" },
on_click = function()
vim.cmd("Neogit")
end,
}, },
}, },
lualine_c = { lualine_c = {
@@ -115,6 +118,19 @@ return {
require("lazy.status").updates, require("lazy.status").updates,
cond = require("lazy.status").has_updates, cond = require("lazy.status").has_updates,
color = { fg = colors.violet }, color = { fg = colors.violet },
on_click = function()
local confirmation = vim.ui.select(
{ "Yes", "No" },
{ prompt = "Update plugins?" },
function(choice)
if choice == "Yes" then
vim.cmd("Lazy sync")
else
vim.notify("Update cancelled", "info", { title = "Lazy" })
end
end
)
end,
}, },
}, },
lualine_y = { lualine_y = {