nvim-treesitter / nvim-treesitter/nvim-treesitter-context
Disable/enable per buffer
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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