docs: statusline

fix https://github.com/neovim/neovim/issues/38670
This commit is contained in:
Justin M. Keyes
2026-04-05 18:37:27 +02:00
parent 57457f227d
commit 6b796696c3
3 changed files with 20 additions and 12 deletions

View File

@@ -6329,11 +6329,13 @@ A jump table for the options with a short description can be found at |Q_op|.
global or local to window |global-local|
Sets the |status-line|.
The option consists of printf style '%' items interspersed with
normal text. Each status line item is of the form:
Contains printf-style "%" items interspersed with normal text, where
each item has the form: >
%-0{minwid}.{maxwid}{item}
All fields except the {item} are optional. A single percent sign can
be given as "%%".
<
All fields except {item} are optional. Use "%%" to show a literal "%"
char. Setting this option to empty (`:set statusline=`) sets its
value to the default.
*stl-%!*
When the option starts with "%!" then it is used as an expression,

View File

@@ -6749,11 +6749,15 @@ vim.wo.stc = vim.wo.statuscolumn
--- Sets the `status-line`.
---
--- The option consists of printf style '%' items interspersed with
--- normal text. Each status line item is of the form:
--- Contains printf-style "%" items interspersed with normal text, where
--- each item has the form:
--- ```
--- %-0{minwid}.{maxwid}{item}
--- All fields except the {item} are optional. A single percent sign can
--- be given as "%%".
--- ```
---
--- All fields except {item} are optional. Use "%%" to show a literal "%"
--- char. Setting this option to empty (`:set statusline=`) sets its
--- value to the default.
---
--- *stl-%!*
--- When the option starts with "%!" then it is used as an expression,

View File

@@ -8820,11 +8820,13 @@ local options = {
desc = [=[
Sets the |status-line|.
The option consists of printf style '%' items interspersed with
normal text. Each status line item is of the form:
Contains printf-style "%" items interspersed with normal text, where
each item has the form: >
%-0{minwid}.{maxwid}{item}
All fields except the {item} are optional. A single percent sign can
be given as "%%".
<
All fields except {item} are optional. Use "%%" to show a literal "%"
char. Setting this option to empty (`:set statusline=`) sets its
value to the default.
*stl-%!*
When the option starts with "%!" then it is used as an expression,