Skip to content

feat(nvim): migrate treesitter to main branch and add textobjects#12

Merged
chagui merged 3 commits into
mainfrom
chagui/nvim/treesitter-main-branch
Apr 4, 2026
Merged

feat(nvim): migrate treesitter to main branch and add textobjects#12
chagui merged 3 commits into
mainfrom
chagui/nvim/treesitter-main-branch

Conversation

@chagui
Copy link
Copy Markdown
Owner

@chagui chagui commented Apr 4, 2026

Migrate nvim-treesitter from the frozen master to main branch for Neovim 0.12. The old module system (nvim-treesitter.configs) is replaced with Neovim built-in APIs for highlight, indent, and folding, following the Implementing Yourself pattern. after/plugin/treesitter.lua is deleted — all its functionality is now native.

Also adds nvim-treesitter-textobjects for structural select (af/if, ac/ic, aa/ia), move (]m/[m, ]]/[[, ]a/[a, ]d/[d), swap (<leader>a/A), and repeatable moves (;/,).

🤖 Generated with Claude Code

chagui and others added 3 commits April 4, 2026 17:46
The master branch is frozen. The main branch removes the module system
(nvim-treesitter.configs) and focuses on parser management only.
Highlight, indent, and folding are now Neovim built-ins wired via a
FileType autocmd, following the "Implementing Yourself" pattern from
treesitter-modules.nvim.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Select (af/if, ac/ic, aa/ia), move (]m/[m, ]]/[[, ]a/[a, ]d/[d),
swap (<leader>a/A), and repeatable moves via ;/, for functions,
classes, arguments, and conditionals.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Required by nvim-treesitter main branch, which compiles parsers from
source instead of shipping pre-built binaries.
@chagui chagui force-pushed the chagui/nvim/treesitter-main-branch branch from 3c2993b to a5670c0 Compare April 4, 2026 15:48
@chagui chagui merged commit 2e6ca9e into main Apr 4, 2026
1 check passed
@chagui chagui deleted the chagui/nvim/treesitter-main-branch branch April 4, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant