Run a custom commit command and refresh neogit #1797
Answered
by
CKolkey
khaitranhq
asked this question in
Q&A
-
I’m trying to find a way to refresh the Neogit view after running a custom command to commit staged files (e.g., oco --yes with OpenCommit). |
Beta Was this translation helpful? Give feedback.
Answered by
CKolkey
Aug 22, 2025
Replies: 1 comment 1 reply
-
Yup, just call https://github.com/NeogitOrg/neogit/blob/master/lua/neogit.lua#L51-L56 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
khaitranhq
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Yup, just call
require('neogit').dispatch_refresh()
for async andrequire('neogit').refresh()
for sync.https://github.com/NeogitOrg/neogit/blob/master/lua/neogit.lua#L51-L56