nvim-treesitter / nvim-treesitter/nvim-treesitter-context
Feat: Expose full context information via API
Open
Nobody has claimed this yet.
- Dominant language
- Janet
- Stars
- 3.2k
- Forks
- 241
- PR merge metrics
- No merged PRs in 30d
Description
Thank you for this great plugin! I'd like to request an API to expose full context information
- All collected context information (including visible range near cursor)
int main(void) {
if() { //Invisible
if() { //Invisible
if() { //visible
[cursor pos]
}
}
}
}
that can get context like:
int main(void) {
if() {
if() {
if() { //visible
This would make it easier to export context for analyzing trigger conditions of specific code.
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 tracing how the plugin currently collects context and exposes its public API. Confirm how the visible range near the cursor is represented, then define an API that returns all collected context, including that range. Done means consumers can export the complete context for analyzing trigger conditions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- neovim, vim
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100