summaryrefslogtreecommitdiff
path: root/neovim/.config/nvim/lua/config/neogit.lua
diff options
context:
space:
mode:
Diffstat (limited to 'neovim/.config/nvim/lua/config/neogit.lua')
-rw-r--r--neovim/.config/nvim/lua/config/neogit.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/neovim/.config/nvim/lua/config/neogit.lua b/neovim/.config/nvim/lua/config/neogit.lua
new file mode 100644
index 0000000..6c4a36a
--- /dev/null
+++ b/neovim/.config/nvim/lua/config/neogit.lua
@@ -0,0 +1,25 @@
+local neogit = require("neogit")
+
+neogit.setup {
+ disable_commit_confirmation = true,
+ auto_refresh = true,
+ kind = 'tab',
+ commit_editor = {
+ kind = 'auto',
+ },
+ integrations = {
+ -- Neogit only provides inline diffs. If you want a more traditional way to look at diffs, you can use `sindrets/diffview.nvim`.
+ -- The diffview integration enables the diff popup, which is a wrapper around `sindrets/diffview.nvim`.
+ --
+ -- Requires you to have `sindrets/diffview.nvim` installed.
+ -- use {
+ -- 'TimUntersberger/neogit',
+ -- requires = {
+ -- 'nvim-lua/plenary.nvim',
+ -- 'sindrets/diffview.nvim'
+ -- }
+ -- }
+ --
+ diffview = true
+ }
+}