From 7dec36dfeb49e790b13977fe9254fb55e9ccc268 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Sat, 3 May 2025 11:53:17 +0800 Subject: [PATCH] =?UTF-8?q?nvim=20git:=20=E5=B0=8F=E8=AA=BF=E7=B5=90?= =?UTF-8?q?=E6=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exact_plugins/exact_components/git.lua | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/dot_config/nvim/exact_lua/exact_plugins/exact_components/git.lua b/dot_config/nvim/exact_lua/exact_plugins/exact_components/git.lua index c85a994..43889ec 100644 --- a/dot_config/nvim/exact_lua/exact_plugins/exact_components/git.lua +++ b/dot_config/nvim/exact_lua/exact_plugins/exact_components/git.lua @@ -1,25 +1,27 @@ return { - "kdheepak/lazygit.nvim", - lazy = true, - cmd = { - "LazyGit", - "LazyGitConfig", - "LazyGitCurrentFile", - "LazyGitFilter", - "LazyGitFilterCurrentFile", + { + "kdheepak/lazygit.nvim", + lazy = true, + cmd = { + "LazyGit", + "LazyGitConfig", + "LazyGitCurrentFile", + "LazyGitFilter", + "LazyGitFilterCurrentFile", + }, + -- optional for floating window border decoration + dependencies = { + "nvim-telescope/telescope.nvim", + "nvim-lua/plenary.nvim", + }, + -- setting the keybinding for LazyGit with 'keys' is recommended in + -- order to load the plugin when the command is run for the first time + keys = { + { "", "LazyGit", desc = "LazyGit" }, + { "lg", "LazyGit", desc = "LazyGit" }, + }, + config = function() + require("telescope").load_extension("lazygit") + end, }, - -- optional for floating window border decoration - dependencies = { - "nvim-telescope/telescope.nvim", - "nvim-lua/plenary.nvim", - }, - -- setting the keybinding for LazyGit with 'keys' is recommended in - -- order to load the plugin when the command is run for the first time - keys = { - { "", "LazyGit", desc = "LazyGit" }, - { "lg", "LazyGit", desc = "LazyGit" }, - }, - config = function() - require("telescope").load_extension("lazygit") - end, }