Add vim-fugitive plugin

This commit is contained in:
Tavo Annus 2021-07-23 20:22:09 +03:00
parent e01aafeea5
commit 472278f2e3
2 changed files with 13 additions and 0 deletions

View File

@ -146,3 +146,9 @@ map("n", "<Esc>", ":noh<CR>", opt)
-- get out of terminal with jk -- get out of terminal with jk
map("t", "jk", "<C-\\><C-n>", opt) map("t", "jk", "<C-\\><C-n>", opt)
-- Vim Fugitive
map("n", "<Leader>gs", ":Git<CR>", opt)
map("n", "<Leader>gh", ":diffget //2<CR>", opt)
map("n", "<Leader>gl", ":diffget //3<CR>", opt)
map("n", "<Leader>gb", ":Git blame<CR>", opt)

View File

@ -243,5 +243,12 @@ return packer.startup(
require("plugins.others").blankline() require("plugins.others").blankline()
end end
} }
use {
"tpope/vim-fugitive",
cmd = {
"Git"
}
}
end end
) )