nvim_eval_statusline() can return the default statusline #28444
Labels
api
libnvim, Nvim RPC API
complexity:low
Low-risk, self-contained. Do NOT ask "can I work on this", just read CONTRIBUTING.md
enhancement
feature request
needs:discussion
For PRs that propose significant changes to some part of the architecture or API
statusline
tabline, winbar, statuscolumn
Milestone
Problem
An old limitation of N/Vim is that the default internal logic for empty 'statusline' option, is not exposed as a 'statusline' expression. We added
nvim_eval_statusline()
which is very nice, but still can't use it to get the default statusline result.Expected behavior
nvim_eval_statusline()
should be able to yield the default statusline. It could look like any of :nvim_eval_statusline('')
nvim_eval_statusline('',{default=true, ...})
The text was updated successfully, but these errors were encountered: