summaryrefslogtreecommitdiff
path: root/neovim/.config/nvim/lua/config/neogit.lua
diff options
context:
space:
mode:
authorMichaël Ball <michael@Michaels-MacBook-Pro.local>2024-07-16 16:12:12 +0100
committerMichaël Ball <michael@Michaels-MacBook-Pro.local>2024-07-16 16:12:12 +0100
commit4385c252eb461a0ec9dbf9569a8f9ef7f0664289 (patch)
treede1005fbc0274eea549dc42ca5be17101b937463 /neovim/.config/nvim/lua/config/neogit.lua
Initial commit
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
+ }
+}