From 7208b24e1dd90f345662eb259426e0a641e22fb9 Mon Sep 17 00:00:00 2001 From: Taken Date: Mon, 18 Mar 2024 11:53:23 +0100 Subject: [PATCH] Updated lualine --- lua/taken/plugins/lualine.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lua/taken/plugins/lualine.lua b/lua/taken/plugins/lualine.lua index 228f391..8535c44 100644 --- a/lua/taken/plugins/lualine.lua +++ b/lua/taken/plugins/lualine.lua @@ -74,6 +74,9 @@ return { "branch", icon = "", color = { fg = colors.violet, gui = "bold" }, + on_click = function() + vim.cmd("Neogit") + end, }, }, lualine_c = { @@ -115,6 +118,19 @@ return { require("lazy.status").updates, cond = require("lazy.status").has_updates, 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 = {