Giter Club home page Giter Club logo

Comments (4)

equalis3r avatar equalis3r commented on June 1, 2024 1

You're right. I will keep using the theme without modifying though. Changing fg to red is not to my liking but there is always an option. Thanks again for your support. 👍

from material.nvim.

marko-cerovac avatar marko-cerovac commented on June 1, 2024

@equalis3r Of course, I'm working on it. Can you please post a random screenshot of the problem, so that I can see exactly which highlight groups I need to change.

from material.nvim.

equalis3r avatar equalis3r commented on June 1, 2024

@marko-cerovac Thanks for your fast response. Below is a screenshot. I'm also using treesitter but the self keyword still has the same color as the attributes of the class.

2021-10-02_20-10-1633199883

from material.nvim.

marko-cerovac avatar marko-cerovac commented on June 1, 2024

Thanks for the screenshot, It made things a lot easier. The issue seems to be with treesitter. Both the 'self' keyword and the parameters fall under the same highlight group called TSField. This means that they can't be separated. If you open material.nvim/lua/material/theme.lua and go to the line 252, you can change the value to some other color and you will see that both the keyword and the parameter change.

When you are trying to manage 5 styles of a colorscheme and need to get them to be perfect, many issues and flaws like this pop up. That is why I created an option for the user to overwrite any highlight that they don't like.
If you find the color really difficult to work with, I suggest adding something like this to your theme config

require('material').setup({
    custom_highlights = {
        TSField = { fg = '#F07178' } -- This will make them red
    }
})

from material.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.