[mini.statusline] Flexible statusline components #1719
Closed
RayZ0rr
started this conversation in
Show and tell
Replies: 2 comments 18 replies
-
That looks nice! The actual implementation (as a link or an actual code under the spoiler) would be helpful here. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@echasnovski Each section can be a table with following fields: -- @param string: function or array of functions - If function, should return the section string. Array of function can be used to give smaller versions of the string, in which the first one that fits the window width is selected. Eg :- {filename_func, filenameShort_func}
-- @param hl: optional string - The highlight group
-- @param hl_fn: optional function - A function which returns a highlight group, useful dynamic highlight groups like those based on vim mode |
Beta Was this translation helpful? Give feedback.
17 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I saw the issue in #1713 and decided to implement it because it seems like a really useful feature. Also, the implementation details were specified in the comments so it was easy to implement it after some modifications. See the results here: @Akhil-CM @echasnovski
nvim_miniline.mp4
nvim_miniline_resize.mp4
Beta Was this translation helpful? Give feedback.
All reactions