1
0
Fork 0
dotfiles/home/config/nvim/plugins/neogit.fnl

22 lines
992 B
Text
Raw Normal View History

2023-12-29 22:45:27 +01:00
(let [neogit (require :neogit)
2024-12-27 01:47:43 +01:00
(ok-gitsigns gitsigns) (pcall require :gitsigns)
2023-12-29 22:45:27 +01: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 23:35:15 +01:00
:group augroup})
2024-01-06 12:39:12 +01:00
(aucmd :User {:pattern [:NeogitCommitComplete
:NeogitPullComplete
:NeogitPushComplete
:NeogitStatusRefreshed]
2024-12-27 01:47:43 +01:00
:callback #(when ok-gitsigns (gitsigns.refresh))
2024-01-02 23:35:15 +01:00
:group augroup}))