aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/git.lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2022-10-12 23:55:30 +0200
committersrdusr <trevorgray@srdusr.com>2022-10-12 23:55:30 +0200
commitc349d1f7998d97f60d3a3945ce8da166b33bf1c8 (patch)
tree44c5e071849d1b8cf1a7ad398ead42cfe75d6585 /lua/plugins/git.lua
downloaddotfiles-c349d1f7998d97f60d3a3945ce8da166b33bf1c8.tar.gz
dotfiles-c349d1f7998d97f60d3a3945ce8da166b33bf1c8.zip
Initial commit
Diffstat (limited to 'lua/plugins/git.lua')
-rw-r--r--lua/plugins/git.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/plugins/git.lua b/lua/plugins/git.lua
new file mode 100644
index 0000000..963f7f9
--- /dev/null
+++ b/lua/plugins/git.lua
@@ -0,0 +1,11 @@
+local status, git = pcall(require, "git")
+if (not status) then return end
+
+git.setup({
+ keymaps = {
+ -- Open blame window
+ blame = "<Leader>gb",
+ -- Open file/folder in git repository
+ browse = "<Leader>go",
+ }
+})