How to get the number of lines of a file? #73
-
i saw this snippet in the examples: stl:add_item(Item({
hl = {fg = color.bg, bg = color.fg0},
prefix = ' ',
suffix = ' ',
content = core.group({core.code('l'), ':', core.code('c')})
})) is it somehow possible to get the number of lines a file has too with core.code? i could not find the documentation for it. |
Beta Was this translation helpful? Give feedback.
Answered by
MunifTanjim
Dec 16, 2023
Replies: 1 comment
-
It's |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MunifTanjim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's
L
. This is documented in:help 'statusline'
.