Install vim fugitive

This commit is contained in:
Marcelo Jacobus 2024-11-26 10:30:27 -03:00
parent b362286745
commit 92b6dbf22f

12
lua/plugins/fugitive.lua Normal file
View file

@ -0,0 +1,12 @@
return {
"tpope/vim-fugitive",
keys = {
-- Unmap the default mapping for <leader>gS (if it exists)
{ "<leader>gS", false },
-- Define your custom mappings
{ "<leader>gS", "<cmd>Git<cr>", desc = "Git status" },
{ "<leader>gw", "<cmd>Git add %<cr>", desc = "Git add {file}" },
{ "<leader>gbl", "<cmd>Git blame<cr>", desc = "Git blame (vim fugitive)" },
},
}