Giter VIP home page Giter VIP logo

Comments (6)

TravonteD avatar TravonteD commented on May 27, 2024 1

I've looked into the field groups that you are trying to use and it looks like they don't necessarily line up.

TSMethod -> works.
TSParameter -> works.
TSProperty -> not used.
TSField -> not used, seems to be mapped TSType instead.
TSConstructor -> not used, also mapped to TSType.

We can update the queries to better match the expected highlight groups, or at least add documentation so that users know which to use.

from nvim-treesitter.

kyazdani42 avatar kyazdani42 commented on May 27, 2024 1

@vigoux should we close this in favor of #81 ?

from nvim-treesitter.

theHamsta avatar theHamsta commented on May 27, 2024

The highlights for argument is TSParameter you can configure it freely and locals currently have no highlight.

from nvim-treesitter.

stsewd avatar stsewd commented on May 27, 2024

Some symbols may not be highlighted after enabling the feature on the fly, you can try forcing the buffer to reload :e! or redraw (Ctrl-L), or just give it a try by enabling it by default :) this is how a java file looks like for me

Screenshot from 2020-08-03 17-39-04

You can modify the highlight groups defined in https://github.com/nvim-treesitter/nvim-treesitter/blob/master/plugin/nvim-treesitter.vim#L25-L75 as you like (like marking some elements with italics).

from nvim-treesitter.

ChrisAmelia avatar ChrisAmelia commented on May 27, 2024

I've tried a few but not all of them work.

hi TSMethod      guifg=#0066FF " Only one working
hi TSParameter   guifg=red
hi TSProperty    guifg=pink
hi TSField       guifg=forestgreen
hi TSConstructor guifg=#66FF22 

This is the result:

image

Is there something I'm missing?

from nvim-treesitter.

p00f avatar p00f commented on May 27, 2024

Is there something I'm missing?

surely, because atleast TSParameter works for me (java)

from nvim-treesitter.

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.