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

fix: Disable inter-layer grouping by default #2580

Merged

Conversation

fredizzimo
Copy link
Member

What kind of change does this PR introduce?

The group of consecutive non-empty layers is now disabled by default and can be turned on with experimental_layer_grouping. The reason for this is that it causes more problems than it solves at the moment, and we need a global push for a new convention inside the Neovim community on how to group layers for it to work.

NOTE: That the grouping inside a single layer is still done, which makes it possible to find the outline that needs shadowing for example.

I'm not personally convinced that grouping across layers is a good idea, as far as I see it, everything that currently use two layers and needs this kind of grouping can be done in one layer instead. For example, to draw a window with border, you can do it with four windows on the same layer (content, top, bottom, left, right). Most plugins should use native borders for that anyway. And I think this problem only really concerns NUI, and it's probably easier to refactor that than to change the whole echos system.

But if we decide to take the grouping approach, we need to have a plan how to communicate it and push it through, and also be absolutely sure that it solves our problems before requiring a lot of plugins, and even user configurations to change.

Did this PR introduce a breaking change?

A breaking change includes anything that breaks backwards compatibility either at compile or run time.

  • No

The grouping inside a single layer is still enabled.
@fredizzimo fredizzimo force-pushed the fsundvik/disable-cross-layer-grouping branch from e550e74 to cd3e754 Compare May 21, 2024 15:01
Copy link

Test Results

  6 files  ±0    6 suites  ±0   21s ⏱️ -3s
110 tests ±0  110 ✅ ±0  0 💤 ±0  0 ❌ ±0 
644 runs  ±0  644 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit cd3e754. ± Comparison against base commit a5b5ae6.

@Kethku Kethku merged commit e687f16 into neovide:main May 24, 2024
13 checks passed
zbyna pushed a commit to zbyna/neovide that referenced this pull request Jun 1, 2024
The grouping inside a single layer is still enabled.
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.

Float background transparent
2 participants