Comments (6)
@diegodario88 - Hi, This can be done by adding language specific treesitter highlight group. Adding these highlights for all the language is tedious for me. If you add, I will be happy to merge.
Please see https://neovim.io/doc/user/treesitter.html#treesitter-highlight
from vscode.nvim.
@diegodario88 - hl(0, 'typescriptClassKeyword', { fg = c.vscBlue, bg = 'NONE' })
this is non treestiite group, if you are using treestiiter that won't work. The correct solution is hi @variable.builtin.typescript guifg=#569CD6
Put it here under LSP semantic highlight.
from vscode.nvim.
When examining the theme.lua
file, I can see that the color for typescriptClassKeyword appears to be correct:
hl(0, 'typescriptClassKeyword', { fg = c.vscBlue, bg = 'NONE' })
.
However, in my buffer, the classKeyword is displayed as pink. What steps should I take to resolve this color discrepancy?
Edit: So I found a way to trigger the change by doing for example
:hi @variable.builtin.typescript guifg=#569CD6
that does correct the color for the this keyword in typescript. But I need guidance on where should I put this code
from vscode.nvim.
@Mofiqul - Wouldn't it be better under the -- Treesitter or even the -- Typescript section?
I ask because there's already a entry for this specific group that I want to change see
In my setup configuration I did like this
group_overrides = {
["@variable.builtin.typescript"] = { fg = vscodeColor.vscBlue, bg = "NONE" },
["@property.method.typescript"] = { fg = vscodeColor.vscYellow, bg = "NONE" },
["@constructor.typescript"] = { fg = vscodeColor.vscBlue, bg = "NONE" },
["@keyword.typescript"] = { fg = vscodeColor.vscBlue, bg = "NONE" },
["@keyword.return.typescript"] = { fg = vscodeColor.vscPink, bg = "NONE" },
}
I did that hoping to override only for the typescript group, maybe we should do the same, and if so I think the better place would be under typescript section, right?
from vscode.nvim.
hi, just wondering if this problem will be fixed with any PR?
from vscode.nvim.
hi, just wondering if this problem will be fixed with any PR?
@me-nkr try it now :)
from vscode.nvim.
Related Issues (20)
- Regression with merge of PR #144 HOT 3
- Invalid background color on neo-tree HOT 2
- Syntax highlighting for Markdown fails after fenced code blocks HOT 6
- Request: conservative mode
- Now, the theme is broken HOT 1
- Markdown higlighting issue? HOT 1
- Update highlights for IndentBlankline.v3 HOT 7
- How to change the colour of variable "is not accessed" HOT 1
- Enable support for toggling bold and italics. HOT 2
- Bug: `hl-VertSplit` is deprecated.
- Feature: Add support for NeoTree HOT 1
- Setting vim.o.background breaks auto-detection HOT 1
- The comment and type highlight are similar in CPP
- Bufferline diagnostics breaking colours
- Configure options HOT 2
- [Bug] Inconsistencies in colors HOT 1
- It looks like the 'light' theme is different to the VSCode's
- Installing plugin with Lazy package manager HOT 1
- Since commit `6ec399`, terminal color are lighter then before HOT 4
- Group overrides for treesitter don't seem to work
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 vscode.nvim.