plugins.statuscol.settings.segments
The statuscolumn can be customized through the segments
option.
Type: null or (list of ((attribute set of anything) or raw lua code))
Default:
null
Plugin default:
[
{
click = "v:lua.ScFa";
text = [
"%C"
];
}
{
click = "v:lua.ScSa";
text = [
"%s"
];
}
{
click = "v:lua.ScLa";
condition = [
true
{
__raw = "require('statuscol.builtin').not_empty";
}
];
text = [
{
__raw = "require('statuscol.builtin').lnumfunc";
}
" "
];
}
]
Declared by:
plugins.statuscol.settings.segments.*.click
%@
click function label, applies to each text element.
Type: null or string or raw lua code
Default:
null
plugins.statuscol.settings.segments.*.condition
Table of booleans or functions returning a boolean.
Type: null or (list of (boolean or raw lua code))
Default:
null
plugins.statuscol.settings.segments.*.hl
%#
highlight group label, applies to each text element.
Type: null or string or raw lua code
Default:
null
plugins.statuscol.settings.segments.*.text
Segment text.
Type: null or (list of (string or raw lua code))
Default:
null
Example:
[
"%C"
]