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 = {