Merge pull request #181 from kilpkonn/vim-fugitive

Add git integration
This commit is contained in:
siduck76 2021-07-23 23:31:29 +05:30 committed by GitHub
commit 17b5336254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

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

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
) )