Skip to content
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

Feat: auto supress the info when length of status is not enough #1335

Open
cxwx opened this issue Nov 23, 2024 · 2 comments
Open

Feat: auto supress the info when length of status is not enough #1335

cxwx opened this issue Nov 23, 2024 · 2 comments
Labels
new feature New feature or feature request

Comments

@cxwx
Copy link

cxwx commented Nov 23, 2024

if the length of status is not longer enough for small screen, auto supress some part of it

Requested feature

sections = {
lualine_x = {
{
"encoding",
autosuppress = true,
}
}
}

Motivation

@cxwx cxwx added the new feature New feature or feature request label Nov 23, 2024
@florianAriasu
Copy link

Hi! So the steps you should follow are these ones:

  1. Open in your preferred editor init.lua file
  2. Make a function that does the following:
    Check screen width
    Encode with suppress
    Set the lualine setup
    This is like the beginning of the task. Please lmk if you solved it.

@shadmansaleh
Copy link
Member

You can use fmt option to achieve something similar. Take a look in the wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or feature request
Projects
None yet
Development

No branches or pull requests

3 participants