From 5e15695ea778fb99d72c4e88b075e4cf6d6b3cc6 Mon Sep 17 00:00:00 2001 From: Nick Burt Date: Thu, 25 Jan 2024 01:22:53 -0600 Subject: [PATCH] install git fugitive and create initial git shortcuts --- lazy-lock.json | 1 - lua/plugins/fugitive.lua | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 lua/plugins/fugitive.lua diff --git a/lazy-lock.json b/lazy-lock.json index 0831d179..5f7ad537 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -19,7 +19,6 @@ "nvim-treesitter": { "branch": "master", "commit": "ab818bf5a2ee21515ade9afcf428e98056b6197b" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "ec1c5bdb3d87ac971749fa6c7dbc2b14884f1f6a" }, "oil.nvim": { "branch": "master", "commit": "24027ed8d7f3ee5c38cfd713915e2e16d89e79b3" }, - "onedark.nvim": { "branch": "master", "commit": "c5476a091b0f1b4e853db91c91ff941f848a1cdd" }, "plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" }, "rust.vim": { "branch": "master", "commit": "889b9a7515db477f4cb6808bef1769e53493c578" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" }, diff --git a/lua/plugins/fugitive.lua b/lua/plugins/fugitive.lua new file mode 100644 index 00000000..f04de7c8 --- /dev/null +++ b/lua/plugins/fugitive.lua @@ -0,0 +1,7 @@ +return { 'tpope/vim-fugitive', + config = function() + vim.keymap.set('n', 'gs', 'Git', { desc = '[G]it [S]tatus' }); + vim.keymap.set('n', 'ga', 'Git add -A', { desc = 'Stage [A]ll [G]it files' }); + vim.keymap.set('n', 'gc', 'Git commit', { desc = '[C]ommit staged [G]it files' }); + end +};