Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quest: get the number of lines of a file? #72

Closed
divramod opened this issue Dec 16, 2023 · 1 comment
Closed

quest: get the number of lines of a file? #72

divramod opened this issue Dec 16, 2023 · 1 comment

Comments

@divramod
Copy link

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.

@MunifTanjim
Copy link
Owner

It's L. This is documented in :help 'statusline'.

Repository owner locked and limited conversation to collaborators Dec 17, 2023
@MunifTanjim MunifTanjim converted this issue into discussion #73 Dec 17, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants