aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/git.lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2022-12-16 23:38:53 +0200
committersrdusr <trevorgray@srdusr.com>2022-12-16 23:38:53 +0200
commit52ed18452c16ed012e646df059859cb7925c1d8d (patch)
treed8c35c98bafe2404c22ae2f186b79bddd673b683 /lua/plugins/git.lua
downloaddotfiles-52ed18452c16ed012e646df059859cb7925c1d8d.tar.gz
dotfiles-52ed18452c16ed012e646df059859cb7925c1d8d.zip
Squashed 'config/nvim/' content from commit f63391e
git-subtree-dir: config/nvim git-subtree-split: f63391eac31d51b5bab84456b6900fdb3b46a285
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",
+ }
+})