docs: statusline

fix https://github.com/neovim/neovim/issues/38670

(cherry picked from commit 6b796696c3)
This commit is contained in:
Justin M. Keyes
2026-04-05 18:37:27 +02:00
committed by github-actions[bot]
parent eac20cd17f
commit f92a68d4bc
3 changed files with 20 additions and 12 deletions

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,