adds lazygit

This commit is contained in:
Fernando Bueno 2024-07-01 13:04:04 -04:00
parent 5d96e9349b
commit d78e602f0f
2 changed files with 25 additions and 0 deletions

View File

@ -21,3 +21,5 @@ opt.termguicolors = true
opt.wrap = false opt.wrap = false
opt.timeoutlen = 222 opt.timeoutlen = 222
-- Set shellcmdflag
opt.shellcmdflag = "-c"

View File

@ -0,0 +1,23 @@
return {
"kdheepak/lazygit.nvim",
-- enabled = vim.api.nvim_get_var("useLazyGit"),
cmd = {
"LazyGit",
"LazyGitConfig",
"LazyGitCurrentFile",
"LazyGitFilter",
"LazyGitFilterCurrentFile",
},
event = "VeryLazy",
keys = {
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "Lazy Git" },
},
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
},
config = function()
require("telescope").load_extension("lazygit")
end
}