aboutsummaryrefslogtreecommitdiff
path: root/lua/user/git.lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2022-10-19 23:55:51 +0200
committersrdusr <trevorgray@srdusr.com>2022-10-19 23:55:51 +0200
commit27a7c25f0727b373b5d0e4693d5bb2cb4c9c3a88 (patch)
treee6a22147b9ff4bf1a4dbe30ae0072a569a6f1e4c /lua/user/git.lua
parent8242c19f6427996a94e6f6079b11ccebdb003cf2 (diff)
downloaddotfiles-27a7c25f0727b373b5d0e4693d5bb2cb4c9c3a88.tar.gz
dotfiles-27a7c25f0727b373b5d0e4693d5bb2cb4c9c3a88.zip
Made Sourcing lua config easier
Diffstat (limited to 'lua/user/git.lua')
-rw-r--r--lua/user/git.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/user/git.lua b/lua/user/git.lua
new file mode 100644
index 0000000..963f7f9
--- /dev/null
+++ b/lua/user/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",
+ }
+})