1
0
Fork 0
dotfiles/home/config/nvim/plugins/neogit.fnl
Daniel Kempkens 611a189ab0
Some checks failed
Build / build-arm64-linux (push) Failing after 1s
Build / build-amd64-linux (push) Successful in 2m36s
nvim: switch from cmp to blink.cmp
2024-12-27 01:47:43 +01:00

21 lines
992 B
Fennel

(let [neogit (require :neogit)
(ok-gitsigns gitsigns) (pcall 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 #(when ok-gitsigns (gitsigns.refresh))
:group augroup}))