nvim git: 小調結構

This commit is contained in:
Yuan Chiu 2025-05-03 11:53:17 +08:00
parent db517f1bcf
commit 7dec36dfeb

View File

@ -1,25 +1,27 @@
return { return {
"kdheepak/lazygit.nvim", {
lazy = true, "kdheepak/lazygit.nvim",
cmd = { lazy = true,
"LazyGit", cmd = {
"LazyGitConfig", "LazyGit",
"LazyGitCurrentFile", "LazyGitConfig",
"LazyGitFilter", "LazyGitCurrentFile",
"LazyGitFilterCurrentFile", "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 = {
{ "<F10>", "<cmd>LazyGit<cr>", desc = "LazyGit" },
{ "<leader>lg", "<cmd>LazyGit<cr>", 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 = {
{ "<F10>", "<cmd>LazyGit<cr>", desc = "LazyGit" },
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" },
},
config = function()
require("telescope").load_extension("lazygit")
end,
} }