Skip to content

fix: window picker bug on global statusline #1098

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

Merged
merged 1 commit into from
Mar 22, 2022
Merged

fix: window picker bug on global statusline #1098

merged 1 commit into from
Mar 22, 2022

Conversation

ichigozero
Copy link
Contributor

This PR attempts to fix #1096.

I set the NvimTree status line to blank when global status is set and window picker is activated. When window picker is deactivated, I restores NvimTree status line to its previous state.

See below screenshots for reference.

Before patch
before

After patch
after

@kyazdani42 kyazdani42 merged commit 57d6f70 into nvim-tree:master Mar 22, 2022
@aspeddro
Copy link
Contributor

aspeddro commented Apr 5, 2022

Why set the NvimTree status line to blank?

This is changing the colors of NvimTree
image

The version prior to this PR is more consistent with user experience.

@kyazdani42
Copy link
Member

thing is, if you go from laststatus 3 to laststatus 2, the bar will appear in nvim-tree in a different way than you are used to be, which would be less consistent imo. The window picker should be a simple "can you select" or "cant you select", not displaying personal buffer information i guess. But maybe this could also be expanded as if the buffer cannot be selected, the statusline display another color that is disabled.

Almo7aya pushed a commit to Almo7aya/nvim-tree.lua that referenced this pull request Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Window picker messing with global statusline
3 participants