Giter Club home page Giter Club logo

Comments (10)

trevordmiller avatar trevordmiller commented on September 28, 2024

@alexlafroscia Great idea! I agree. Along with using background colors, it would be good to update to use the nova-colors versionControlGroups; right now git related highlight groups are incorrectly not using versionControlGroups. Would you mind taking this one? If not, I'll get to it :)

from nova-vim.

alexlafroscia avatar alexlafroscia commented on September 28, 2024

Sure, I'll add it to my list and see if I can get to it tonight.

from nova-vim.

trevordmiller avatar trevordmiller commented on September 28, 2024

Thanks @alexlafroscia you rock. If you don't have time no worries I'll take care of it at some point :)

from nova-vim.

alexlafroscia avatar alexlafroscia commented on September 28, 2024

@trevordmiller Add/removed is pretty easy, but changed lines vs. the actual part of the line that changes (blue background vs. yellow background in the Gruvbox screenshot) are two different color groups. How do you want me to handle that?

from nova-vim.

trevordmiller avatar trevordmiller commented on September 28, 2024

@alexlafroscia Would it make sense to use novaColors.versionControlGroups.modified (orange) for the line that changes and novaColors.versionControlGroups.renamed (blue) for the actual part of the line that changed? Or we could extend nova-colors with versionControlGroups.exactModified (and set it equal to one of the unused colorValues for versionControlGroups) or something? I'll defer to whatever you think is best as I don't use vim diffs (I use terminal git outside of vim for git stuff).

from nova-vim.

alexlafroscia avatar alexlafroscia commented on September 28, 2024

Would it make sense to use novaColors.versionControlGroups.modified (orange) for the line that changes and novaColors.versionControlGroups.renamed (blue) for the actual part of the line that changed?

I like this idea. It looks something like this:

screen shot 2016-10-12 at 10 11 08 am

The blue text on orange background is too light IMO. We could always change the background color behind that text through.

from nova-vim.

alexlafroscia avatar alexlafroscia commented on September 28, 2024

A darker orange color for the changed text might look nice

from nova-vim.

trevordmiller avatar trevordmiller commented on September 28, 2024

@alexlafroscia Thanks for looking at that. Yeah if you can use the background color with the blue (versionControlGroups.renamed) that would be best as I would prefer not to extend nova-colors unless absolutely necessary. You could also experiment with passing in underline so that the inline change is the same color as the line but is underlined or something; that would require re-working how the highlight helper works to allow passing in style modifiers. Without actually trying it out, I would imagine just doing what you did with the blue but making it the background instead of the foreground would probably work best.

from nova-vim.

alexlafroscia avatar alexlafroscia commented on September 28, 2024

alright, so I'll try

  • Blue background
  • Orange text
  • Underline (maybe)

Right?

from nova-vim.

trevordmiller avatar trevordmiller commented on September 28, 2024

@alexlafroscia Sure, whatever you think makes the most sense :)

from nova-vim.

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.