Skip to content

Run a custom commit command and refresh neogit #1797

Answered by CKolkey
khaitranhq asked this question in Q&A
Discussion options

You must be logged in to vote

Yup, just call require('neogit').dispatch_refresh() for async and require('neogit').refresh() for sync.

https://github.com/NeogitOrg/neogit/blob/master/lua/neogit.lua#L51-L56

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@khaitranhq
Comment options

Answer selected by khaitranhq
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants