Merge pull request #181 from kilpkonn/vim-fugitive

Add git integration
navigator
siduck76 3 years ago committed by GitHub
commit 17b5336254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -153,3 +153,9 @@ vim.cmd("silent! command PackerInstall lua require 'pluginList' require('packer'
vim.cmd("silent! command PackerStatus lua require 'pluginList' require('packer').status()")
vim.cmd("silent! command PackerSync lua require 'pluginList' require('packer').sync()")
vim.cmd("silent! command PackerUpdate lua require 'pluginList' require('packer').update()")
-- 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)

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

Loading…
Cancel
Save