Giter Club home page Giter Club logo

Comments (7)

lewis6991 avatar lewis6991 commented on July 22, 2024 2

You need to make sure the queries do not include comments.

from nvim-treesitter-context.

codevogel avatar codevogel commented on July 22, 2024 1

@lewis6991
I wanted to ask for some clarification on this - It's totally fair that you don't want to spend time on this yourself, but would you be accepting PR's that offer this behaviour as a config option? Or would you rather not see these come in due to future maintenance?

Thanks :)

from nvim-treesitter-context.

bew avatar bew commented on July 22, 2024

Why close? I think it's a very valid request 🤔

from nvim-treesitter-context.

lewis6991 avatar lewis6991 commented on July 22, 2024

Because I don't want to and I'm currently the only maintainer.

Features aren't free.

from nvim-treesitter-context.

nogweii avatar nogweii commented on July 22, 2024

Ah, sorry, this came across a little more demand-y / blunt than I intended, sorry.

I'd be glad to work on it, but I'm not entirely sure where to start on this. I don't see anything that intentionally grabs the comments in the queries, so do those need to be tweaked to exclude them?

from nvim-treesitter-context.

lewis6991 avatar lewis6991 commented on July 22, 2024

No problem.

I'm pretty sure this is a specific problem with the context queries for the language you are using as comments aren't treated any specially and the queries specify exactly what the context is.

from nvim-treesitter-context.

ghostfish0 avatar ghostfish0 commented on July 22, 2024

@nogweii Hi I'm facing similar issues, any news on this front? Did you resolve this? Many thanks :)

from nvim-treesitter-context.

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.