nvim-treesitter / nvim-treesitter/nvim-treesitter-textobjects

Disable with a function like for highlight

Open
#739 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Tree-sitter Query
Stars
2.8k
Forks
271
Avg merge
8d 8h
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.
At work I work with files few hundreds line and other C files that are >10K. If I do a swap or select argument or whatever entire UX freeze during 20 seconds.

Describe the solution you'd like
I want like highlight pass a disable() function so I can check size of file to enable/disable

Describe alternatives you've considered
Fix the slowness.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing highlight behavior and how it handles large C files. Reproduce the UX freeze with a file over 10K lines, then define the disable function's size-check behavior; done means highlighting or related textobject operations can be disabled without freezing the editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
performance, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.