nvim-treesitter / nvim-treesitter/nvim-treesitter-context

Disable/enable per buffer

Open
#579 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Janet
Stars
3.2k
Forks
241
PR merge metrics
No merged PRs in 30d

Description

There is no way to disable/enable this plugin BUFFER-locally.

I request to provide an API that would make it possible. E.g.


require("nvim-treesitter-context").enable({ bufnr = 0 }) -- disable only for current buffer

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 locating the plugin API exposed through require("nvim-treesitter-context") and inspect how enable/disable state is currently handled. Implement the requested buffer-local behavior for bufnr = 0, then verify that enabling or disabling one buffer does not affect other buffers.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.