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

22 lines
953 B
Plaintext
Raw Normal View History

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})
2024-01-06 11:39:12 +00:00
(aucmd :User {:pattern [:NeogitCommitComplete
:NeogitPullComplete
:NeogitPushComplete
:NeogitStatusRefreshed]
2024-01-02 22:35:15 +00:00
:callback #(gitsigns.refresh)
:group augroup}))