From 93e7a1afc446926e3c9d1242443bc4846138e476 Mon Sep 17 00:00:00 2001 From: rootiest Date: Thu, 29 Aug 2024 14:48:11 -0400 Subject: [PATCH] feat: add on-click functionality to open LazyGit --- lua/plugins/git.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/plugins/git.lua b/lua/plugins/git.lua index 4d06cf7..24ed01f 100644 --- a/lua/plugins/git.lua +++ b/lua/plugins/git.lua @@ -68,6 +68,10 @@ return { and utils.is_window_wide_enough(width_limit) end, color = { fg = utils.get_fg_color("GitSignsCurrentLineBlame") }, + padding = { left = 1, right = 0 }, + on_click = function() + vim.cmd("LazyGit") + end, }) -- Apply the lualine configuration require("lualine").setup(config)