diff --git a/roles/neovim/files/after/plugin/git.lua b/roles/neovim/files/after/plugin/git.lua new file mode 100644 index 00000000..d3376a47 --- /dev/null +++ b/roles/neovim/files/after/plugin/git.lua @@ -0,0 +1,14 @@ +local status_ok, neogit = pcall(require, "neogit") +if not status_ok then + return +end + +neogit.setup { + disable_commit_confirmation = true, +} + +local nmap = require('opdavies.keymap').nmap + +nmap({ "gg", "Neogit" }) +nmap({ "gl", "Neogit log" }) +nmap({ "gp", "Neogit push" })