}
return ""
},
+ "lines": func(b *buffer.Buffer) string {
+ return strconv.Itoa(b.LinesNum())
+ },
+ "percentage": func(b *buffer.Buffer) string {
+ return strconv.Itoa((b.GetActiveCursor().Y + 1) * 100 / b.LinesNum())
+ },
}
func SetStatusInfoFnLua(fn string) {
* `statusformatl`: format string definition for the left-justified part of the
statusline. Special directives should be placed inside `$()`. Special
- directives include: `filename`, `modified`, `line`, `col`, `opt`, `bind`.
+ directives include: `filename`, `modified`, `line`, `col`, `lines`, `percentage`, `opt`, `bind`.
The `opt` and `bind` directives take either an option or an action afterward
and fill in the value of the option or the key bound to the action.