1
0
Fork 0
dotfiles/home/config/nvim/plugins/neogit.fnl
Daniel Kempkens 131ef3fe3c
All checks were successful
Update Flake / update-flake (push) Successful in 2m33s
Build / build-amd64-linux (push) Successful in 1m42s
Build / build-arm64-linux (push) Successful in 12m44s
nvim: git integration improvements
2024-01-02 23:35:15 +01:00

21 lines
927 B
Fennel

(let [neogit (require :neogit)
gitsigns (require :gitsigns)
augroup (vim.api.nvim_create_augroup :NifocNeogit {:clear true})
aucmd vim.api.nvim_create_autocmd]
(neogit.setup {})
(aucmd :FileType {:pattern [:NeogitBranchDescription
:NeogitCommitMessage
:NeogitCommitView
:NeogitLogView
:NeogitMergeMessage
:NeogitPopup
:NeogitStatus
:NeogitTagMessage]
:callback #(set vim.b.toggle_line_style 0)
:group augroup})
(aucmd :User {:pattern :NeogitCommitComplete
:callback #(gitsigns.refresh)
:group augroup})
(aucmd :User {:pattern :NeogitPushComplete
:callback neogit.close
:group augroup}))