feat(options): default statusline expression #33036

Problem:
Default 'statusline' is implemented in C and not representable as
a statusline expression. This makes it hard for user configs/plugins to
extend it.

Solution:
- Change the default 'statusline' slightly to a statusline expression.
- Remove the C implementation.
This commit is contained in:
Shadman
2025-04-22 04:05:34 +06:00
committed by GitHub
parent ab72799841
commit 28e31f5d3d
23 changed files with 167 additions and 151 deletions

View File

@@ -1189,9 +1189,9 @@ describe('vim._with', function()
]]
screen:expect [[
19 |
{1:[No Name] [+] 20,1 3%}|
{1:< Name] [+] 20,1 3%}|
^19 |
{2:[No Name] [+] 20,1 3%}|
{2:< Name] [+] 20,1 3%}|
|
]]
exec_lua [[
@@ -1200,9 +1200,9 @@ describe('vim._with', function()
]]
screen:expect [[
99 |
{1:[No Name] [+] 100,1 19%}|
{1:< Name] [+] 100,1 19%}|
^19 |
{2:[No Name] [+] 20,1 3%}|
{2:< Name] [+] 20,1 3%}|
|
]]
end)