Comments (8)
Yes, just deactivate highlight of TSPunctBracket
highlight link TSPunctBracket Normal
I am using a similar plugin. It works without problems when you deactivate the Bracket highlight.
Proof: #107 (comment) (with 'kien/rainbow_parentheses.vim`)
To be exact I am deactivating the bracket highlighting completely (if above suggesstion does not work):
require "nvim-treesitter.highlight"
local hlmap = vim.treesitter.TSHighlighter.hl_map
--Misc
hlmap.error = nil
hlmap["punctuation.delimiter"] = "Delimiter"
hlmap["punctuation.bracket"] = nil
from nvim-treesitter.
It seems that after 1baf751 the above fix no longer works.
Now I'm using the following:
autocmd vimrc BufEnter * hi clear TSPunctBracket
from nvim-treesitter.
Hehe, not sure how we are supposed to do that. I have some question (that should have been aswered in the template but nvm...):
How is it working now ?
How should it be working ?
from nvim-treesitter.
When I install rainbow and nvim-treesitter,the current work state is as shown in the above fig.
from nvim-treesitter.
If only installing rainbow, the work state looks like this. The synchronized cooperative work state of rainbow and nvim-treesitter should look like the one shown in the above picture.
from nvim-treesitter.
@cogig, did the comment above solved you issue ?
from nvim-treesitter.
The scheme works well for me. Thank you.
from nvim-treesitter.
The following worked for me to restore the highlighting with 'junegunn/rainbow_parentheses.vim':
require "nvim-treesitter.highlight"
local hlmap = vim.treesitter.highlighter.hl_map
hlmap["punctuation.bracket"] = nil
TSHighlighter
is nil and setting up hlmap.error
resulted in some strange highlights throughout the code. Setting up highlight link TSPunctBracket Normal
did not work.
from nvim-treesitter.
Related Issues (20)
- 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
- Treesitter crashes when opening a buffer HOT 14
- New `compat.flatten` replacement in-compatible HOT 8
- zig not working for treesitter build after update to neovim nightly and lazyvim rewrite HOT 8
- [Windows] Trouble Moving Generated .so on `TSInstall powershell` HOT 7
- :TSInstall not install parsers to parser_install_dir HOT 2
- Wrong indentation with elixir HOT 1
- Failed to load parser for language 'lua' : uv_dlopen : no error (on windows) HOT 19
- crash: segfault due to trying to free() an invalid pointer during TreeSitter HTML parsing HOT 1
- TreeSitter fails to load parser HOT 2
- Treesitter error when opening cpp file HOT 1
- Luau variables are highlighted as type
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.