Comments (6)
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.
@vigoux should we close this in favor of #81 ?
from nvim-treesitter.
The highlights for argument is TSParameter you can configure it freely and locals currently have no highlight.
from nvim-treesitter.
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
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.
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:
Is there something I'm missing?
from nvim-treesitter.
Is there something I'm missing?
surely, because atleast TSParameter works for me (java)
from nvim-treesitter.
Related Issues (20)
- Opening PHP file containing heredoc syntax silently crashes Neovim HOT 2
- bug: wrong js highlight in php HOT 1
- No syntax highlight for gleam until ran `:TSBufEnable highlight` HOT 1
- Treesitter crashes neovim when opening C++ files using raw string literals HOT 5
- Better "use strict" directive highlighting in ECMAScript HOT 2
- Error in vimdoc query HOT 1
- Question: are the parsers audited? HOT 3
- Error during download, please verify your internet connection HOT 1
- [Verilog] Fails to parse `generate` block HOT 3
- markdown grammar broken HOT 3
- Neovim segfaults when editing a vue file HOT 1
- Crash of PHP parser with free(): invalid pointer briefly displayed HOT 3
- ts_utils.swap_nodes can handle newlines better
- Opening multiple files with -p with nightly neovim has different tabstop & expandtab values on second tab HOT 2
- `Makefile` highlighting some values and arguments as text HOT 8
- Bug: vim.tbl_flatten is deprecated in latest Neovim HOT 4
- Issuing Installing tree-sitter for PowerShell in nvim HOT 2
- Error (freezes nvim) when opening markdown with code block name in different case (e.g. "Python", "JSON", "R"): `no such language: R` HOT 13
- `ocaml` and `ocaml_interface` could not be compiled on Windows HOT 20
- java query error with vim.lsp.buf.signature_help() HOT 1
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 nvim-treesitter.