Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Tell component section to truncate from right to left rather than vice versa #211

Closed
mawkler opened this issue Feb 4, 2022 · 1 comment

Comments

@mawkler
Copy link

mawkler commented Feb 4, 2022

By default Neovim seems to truncate the statusline from left to right if it doesn't fit. I like to have my Vim mode in the bottom left, but it therefore the first thing that disappears upon truncation. I would like for it to be the very last thing in that component section to dissappear.

I found %< in :h statusline but there doesn't seem to be a %>.

I know of #96 which sort of covers this issue, but it has a much wider scope.

I also know that I can use enabled to adapt my components based on fn.winwidth(), but sometimes the statusline still becomes too wide.

Is this possible to do?

@ram02z
Copy link
Contributor

ram02z commented Feb 4, 2022

Is this possible to do?

By default components have a truncation priority of 0, and you can try to set a higher priority to the vim mode component, say 1.

You can also set truncate_hide = true to components you want to hide first.

See https://github.com/feline-nvim/feline.nvim/blob/master/USAGE.md#component-priority

Repository owner locked and limited conversation to collaborators Feb 4, 2022
@ram02z ram02z converted this issue into discussion #212 Feb 4, 2022

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