Skip to content
Discussion options

You must be logged in to vote

by default the statusline is redrawn whenever neovim thinks it is most appropriate (redraw conditions are not really documented). At each redraw fired by neovim, the entire statusline is re-evaluated. This might be inefficient for some components that need to do some heavy tasks but don't need to be re-evaluated often, maybe only when directory is changed, buffer is saved, etc. the update field allows to control on which events the component will be re-evaluated, instead of using its cached value. condition, but not init, is always evaluated, regardless. Setting update = false indeed is not doing what you think it should be doing, it is just saying that you don't want to specify what even…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@devansh08
Comment options

@rebelot
Comment options

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