Giter Site home page Giter Site logo

Comments (8)

ggandor avatar ggandor commented on May 18, 2024 2

Might I suggest just defining LightspeedFoo highlight groups and letting color schemes / user configs sort out the actual colors?

Preaching to the choir: :h lightspeed-highlight.

(Also, TUIs do use guifg if termguicolors is set.)

Yeah, that's why I skipped defining cterm groups, but it would be better to provide defaults for those anyway.

from lightspeed.nvim.

ggandor avatar ggandor commented on May 18, 2024

Sure, we just need to add the corresponding cterm attributes to the group definitions. The question is, should we convert the values to 256 colors then? Or maybe 16?

The .lua file is generated, you can find the relevant part in the Fennel source file here.

from lightspeed.nvim.

JBenda avatar JBenda commented on May 18, 2024

Thanks, I was already wondering how you possibly can keep track of all this _16_ ;)
NeoVIM only supports 16 colors for console because of compatibility.

from lightspeed.nvim.

JBenda avatar JBenda commented on May 18, 2024

In #4 is a simple idea how a solution looks like.
It's mirrored what I have changed in the lightspee.lua to make it work on my machine.

from lightspeed.nvim.

ggandor avatar ggandor commented on May 18, 2024

Thank you :) Yeah, this is pretty much all we need to do. Will look at this tonight, test and tweak the colors, and figure out a good scheme for light background...

There is a makefile included that you could use to compile the Fennel file to the lua folder, just run make after finishing the edits, and then the plugin can be tested locally after re-sourcing.

from lightspeed.nvim.

JBenda avatar JBenda commented on May 18, 2024

Good to know, I never worked with Lua or Fennel before ^^

from lightspeed.nvim.

clason avatar clason commented on May 18, 2024

Might I suggest just defining LightspeedFoo highlight groups and letting color schemes / user configs sort out the actual colors? You can link them to standard highlight groups (Search, IncSearch) by default. This should be more portable / extensible and is how, e.g., gitsigns does this.

(Also, TUIs do use guifg if termguicolors is set.)

from lightspeed.nvim.

JBenda avatar JBenda commented on May 18, 2024

(Also, TUIs do use guifg if termguicolors is set.)

but this settting breaks many plugins ^^

from lightspeed.nvim.

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.