Code Monkey home page Code Monkey logo

Comments (6)

Mofiqul avatar Mofiqul commented on August 11, 2024 1

@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.

Mofiqul avatar Mofiqul commented on August 11, 2024 1

@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.

diegodario88 avatar diegodario88 commented on August 11, 2024

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.

diegodario88 avatar diegodario88 commented on August 11, 2024

@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.

me-nkr avatar me-nkr commented on August 11, 2024

hi, just wondering if this problem will be fixed with any PR?

from vscode.nvim.

johannesrld avatar johannesrld commented on August 11, 2024

hi, just wondering if this problem will be fixed with any PR?

@me-nkr try it now :)

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