From f7cf22ef2a664d1a0bd25a5523c4bc270c04403d Mon Sep 17 00:00:00 2001 From: xfy Date: Thu, 11 Jun 2026 23:57:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(git):=20=E6=96=B0=E5=A2=9E=20gl=20?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=20:GcLog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/plugins/git.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/plugins/git.lua b/lua/plugins/git.lua index 52c4ab0..361c389 100644 --- a/lua/plugins/git.lua +++ b/lua/plugins/git.lua @@ -250,3 +250,8 @@ end, { desc = "Blame 整个文件" }) lazy.on_keys("fugitive", "gD", "n", load_fugitive, function() vim.cmd("Git log -p -- %") end, { desc = "查看文件 Git 历史" }) + +-- gl — 查看当前文件的 Gclog +lazy.on_keys("fugitive", "gl", "n", load_fugitive, function() + vim.cmd("GcLog") +end, { desc = "查看文件 GcLog" })