mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-24 05:21:04 +00:00
Install vim fugitive
This commit is contained in:
parent
b362286745
commit
92b6dbf22f
1 changed files with 12 additions and 0 deletions
12
lua/plugins/fugitive.lua
Normal file
12
lua/plugins/fugitive.lua
Normal 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)" },
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue