-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
vim: Add a setting to change the Vim mode indicator position on the status bar from right to left #22048
vim: Add a setting to change the Vim mode indicator position on the status bar from right to left #22048
Conversation
dd23300
to
48ac070
Compare
@maxdeviant better now? |
@helgemahrt Thanks for this! We should put the mode indicator to the left of the diagnostics, otherwise when the diagnostics update the mode indicator jumps around. The tricky bit is that the diagnostics indicator currently provides the vertical line, so we'll need to to fix how that is rendered. The only reason this is on the right today is this issue, so I'd also be in favor of just moving this to the left unconditionally and saving ourselves a probably unnecessary setting. |
1df35fe
to
5ad3ada
Compare
IMO it's probably a good idea to have it configurable - there may be people who prefer it on the right side. However, maybe the better approach would be to make the order of all elements of the status bar configurable? For now, I added a change that ensures that the diagnostics indicator stays the right-most element on the left side of the status bar. |
Hang on, I made a mess in this branch when I removed the other commits. I'll create a clean branch/PR and link it here. |
@helgemahrt I think it needs to be the left-most position on the left of the status bar. I don't want it to move when the diagnostics updates. |
… side of the status bar
5ad3ada
to
fb4a6ca
Compare
I think I managed to recover this branch. 😅
Currently, the diagnostics indicator is the right-most item on the left side, with the vertical separator to the left: My latest change ensures it stays that way, but, TBH, it feels a bit hacky. I just realized I missed ensuring that the Vim mode indicator stays behind the diagnostics indicator on startup as well. Will fix that in a moment. |
I just realized that there's also the activity indicator. Now I'm thinking that maybe it'd be better to scrap this PR and rethink whether and how the status bar should be configurable. And maybe put the vim mode indicator to the left side for the time being, like you suggested. WDYT? |
Sounds good! If you're up for it I think moving to the left of all the things would be a positive development |
Created #22269 to move the indicator. Closing this PR. |
Add the first request on issue #14093
Release Notes: