Giter Site home page Giter Site logo

Comments (2)

antoineco avatar antoineco commented on August 21, 2024 1

Good catch. I also noticed that on the Lazy screen.

Here is a reference to the commit which introduced the feature: 6510c08
If I remember correctly, it was introduced for NvimTree: #111 (comment).

We could probably re-visit this because

  1. NvimTree has its own NvimTreeEndOfBuffer highlight group.
  2. If I set :hi! link EndOfBuffer NonText (Neovim's default), everything seems to get displayed as expected.

from everforest.

antoineco avatar antoineco commented on August 21, 2024 1

Before I push that change, here is a recap — with screenshots — of the way EndOfBuffer looks with a few settings variations.

While some cases below work flawlessly with a cleared EndOfBuffer background, others will have trade-off which users should be aware of.


show_eob:true dim_inactive:false

✅ Everything looks as expected

showeob_true_diminactive_false_current
show_eob:true dim_inactive:false (current)

showeob_true_diminactive_false
show_eob:true dim_inactive:false (clear EndOfBuffer bg)


show_eob:false dim_inactive:false

✅ Everything looks as expected

showeob_false_diminactive_false_current
show_eob:false dim_inactive:false (current)

showeob_false_diminactive_false
show_eob:false dim_inactive:false (clear EndOfBuffer bg)


show_eob:true dim_inactive:true

⚠️ The current appearance seems broken, with an entirely dimmed eob. I am not the author of the dimming feature, but to me this doesn't seem intentional, and I believe that the suggested change actually fixes it.

showeob_true_diminactive_true_current
show_eob:true dim_inactive:true (current)

showeob_true_diminactive_true
show_eob:true dim_inactive:true (clear EndOfBuffer bg)


show_eob:false dim_inactive:true

⚠️ Similarly to the above, the current appearance seems broken, with an entirely dimmed eob. In this case though, clearing the background color reveals the eob symbols in the current window, while keeping them hidden in inactive windows. I believe that this is an acceptable trade-off for having properly rendered floating windows everywhere. If need be, we can always revert the appearance (optimize for the active window instead) in a subsequent commit. (edit: addressed in 4eb1e19)

showeob_false_diminactive_true_current
show_eob:false dim_inactive:true (current)

showeob_false_diminactive_true
show_eob:false dim_inactive:true (clear EndOfBuffer bg)


Note
NvimTree's EndOfBuffer isn't affected by any of these:

nvimtree_eob

from everforest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.