Giter VIP home page Giter VIP logo

Comments (8)

theHamsta avatar theHamsta commented on June 6, 2024 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.

jackcogdill avatar jackcogdill commented on June 6, 2024 1

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.

vigoux avatar vigoux commented on June 6, 2024

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.

cogig avatar cogig commented on June 6, 2024

rainbow
When I install rainbow and nvim-treesitter,the current work state is as shown in the above fig.

from nvim-treesitter.

cogig avatar cogig commented on June 6, 2024

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

vigoux avatar vigoux commented on June 6, 2024

@cogig, did the comment above solved you issue ?

from nvim-treesitter.

cogig avatar cogig commented on June 6, 2024

The scheme works well for me. Thank you.

from nvim-treesitter.

dchromejko avatar dchromejko commented on June 6, 2024

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)

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.