2023-12-29 21:45:27 +00:00
|
|
|
(let [neogit (require :neogit)
|
2024-01-02 22:35:15 +00:00
|
|
|
gitsigns (require :gitsigns)
|
2023-12-29 21:45:27 +00:00
|
|
|
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)
|
2024-01-02 22:35:15 +00:00
|
|
|
:group augroup})
|
|
|
|
(aucmd :User {:pattern :NeogitCommitComplete
|
|
|
|
:callback #(gitsigns.refresh)
|
|
|
|
:group augroup})
|
|
|
|
(aucmd :User {:pattern :NeogitPushComplete
|
|
|
|
:callback neogit.close
|
|
|
|
:group augroup}))
|