dotfiles/home/config/nvim/plugins/neogit.fnl
2024-01-06 12:39:18 +01:00

21 lines
953 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
:NeogitPullComplete
:NeogitPushComplete
:NeogitStatusRefreshed]
:callback #(gitsigns.refresh)
:group augroup}))