Comments (4)
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.
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.
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.
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.
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
from rasmus.nvim.
Related Issues (9)
- Feature (parity) request: bold function name in declaration/definition HOT 6
- [(irrelevant) Question] About your statusline HOT 2
- Hard to see the cursor and the character when enable cursorcolumn and cursorline HOT 2
- Highlights for neorg quotes HOT 2
- Light mode support HOT 1
- Custom highlights / JSON Syntax HOT 1
- Maybe support for VSCODE
- Add highlight for WinSeparator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rasmus.nvim.