Code Monkey home page Code Monkey logo

Comments (4)

Amar-Gill avatar Amar-Gill commented on May 24, 2024 1

Thanks for the fix! It does now highlight the JSX. But as you mentioned, it affects other groups, like the imported class inside the normal TS part of the code.

image

image

This is a good start however! I'm going to see if I can figure out something. Maybe https://github.com/sainnhe/gruvbox-material can provide some ideas.

P.S. the terminal font I'm using is DaddyTimeMono Nerd Font.

from rasmus.nvim.

kvrohit avatar kvrohit commented on May 24, 2024

Thank you! and that's a nice font in your screenshot. As for the colors, I will try and see if there are other color schemes that have addressed this issue; if not, this could be a limitation with the highlight groups available for customization in neovim.

from rasmus.nvim.

kvrohit avatar kvrohit commented on May 24, 2024

I traced this down to the highlight group TSConstructor. Unfortunately this group is shared with many other elements and I cannot target just the react tag names to have this change.

I have prepared a branch for you to try it out. Change your packer config to the following and PackerSync to update:

use { 'kvrohit/rasmus.nvim', branch = 'ts-hl-tweaks' }

Let me know if this works for you. However, I do not have plans to merge this into the main branch since it changes a lot of things.

from rasmus.nvim.

Amar-Gill avatar Amar-Gill commented on May 24, 2024

Side note, it looks like Class imports (or in this case React components) are highlighted differently than standard method imports. Didn't notice this before. In the example, useControls is a little bit brighter
Screen Shot 2022-09-14 at 3 05 20 AM

from rasmus.nvim.

Related Issues (9)

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.