Skip to content
Discussion options

You must be logged in to vote

The tricky part might be to integrate the autocmd (that is: autocmd DiffUpdated * call DiffCount()) into config.format; is this even possible?

There should be no need for that. I'd suggest something along these lines:

  • Store a diff data (probably per-buffer, but not sure) in a specific table, for example local diff_count = {}. The DiffCount() then transforms into update_diff_count() and should still be called inside DiffUpdated event.
  • Write config.format to use data from the table based on the current buffer identifier.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by Dupond
Comment options

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

Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.statusline mini.tabline
2 participants