aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-05-19 13:18:28 -0500
committerToby Vincent <tobyv13@gmail.com>2023-05-19 13:18:28 -0500
commit48ec1ed4ff91a552a729627227862c954804a5e8 (patch)
tree512d0eac0797c15f7bb86ca0b145f34899fe85c2 /nvim/.config
parent7638e19fa05c704aa27e52f7cbab0aec69a3bbd3 (diff)
feat(nvim): add keymap to open diff
Diffstat (limited to 'nvim/.config')
-rw-r--r--nvim/.config/nvim/after/ftplugin/gitcommit.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/nvim/.config/nvim/after/ftplugin/gitcommit.lua b/nvim/.config/nvim/after/ftplugin/gitcommit.lua
new file mode 100644
index 0000000..177fbb7
--- /dev/null
+++ b/nvim/.config/nvim/after/ftplugin/gitcommit.lua
@@ -0,0 +1 @@
+vim.keymap.set("n", "<Leader>gd", vim.cmd.DiffGitCached, { buffer = 0, desc = "show diff" })