Add a custom function in mini.tabline #1576
-
Contributing guidelines
Module(s)mini.tabline QuestionHello! In
As you can see, the function returns a simple It would be much better if I could display the result of the function inside of my mini.tabline (for example, on the far right of the window). Is it possible to do this? Many thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
I am afraid the answer to this particular question is no. The 'mini.tabline' specifically is reserved to only show listed buffers and possibly tabpage section. Anything beyond that is out of scope. Here are some alternatives:
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much for taking the time to answer. Using |
Beta Was this translation helpful? Give feedback.
-
Once again, thank you for taking the time to reply! Thanks to your answer, I've replaced the
And it seems to work just fine! Thank you for your help! Is it normal however that in |
Beta Was this translation helpful? Give feedback.
-
I've found it: it's because by default, you've linked the Anyway, I think I'll give up on this function: I've been searching for hours, but the buffers in Anyway! Unfortunately, I don't have any more time to spend on it. So I thank you one last time for your help, and wish you a good week (here in France, many people are on vacation ;))! Your plugins are great, thank you for them! |
Beta Was this translation helpful? Give feedback.
-
Once again, that's very kind of you, but I don't want to waste your time. I can live with this (tiny) problem :) Thanks again and have a nice evening! |
Beta Was this translation helpful? Give feedback.
There should be no need for that. I'd suggest something along these lines:
local diff_count = {}
. TheDiffCount()
then transforms intoupdate_diff_count()
and should still be called insideDiffUpdated
event.config.format
to use data from the table based on the current buffer identifier.