Skip to content

fix: migrate nvim-treesitter config to new API#237

Merged
shunsock merged 2 commits intomainfrom
fix/nvimc-treesitter-config
Mar 26, 2026
Merged

fix: migrate nvim-treesitter config to new API#237
shunsock merged 2 commits intomainfrom
fix/nvimc-treesitter-config

Conversation

@shunsock
Copy link
Copy Markdown
Owner

Summary

  • nvim-treesitter plugin removed nvim-treesitter.configs module in its major rewrite, causing startup errors in all nvimc containers
  • Migrated to require("nvim-treesitter").setup (new API)
  • Replaced deprecated vim.loop with vim.uv
  • Large file highlight disable now uses BufReadPre autocmd with vim.treesitter.stop()

Test plan

  • Build nvimc-default-arm container and verify Neovim starts without treesitter errors
  • Open a markdown file and confirm syntax highlighting works
  • Open a file larger than 100KB and confirm treesitter highlight is disabled

🤖 Generated with Claude Code

shunsock and others added 2 commits March 26, 2026 16:51
The nvim-treesitter plugin removed the `nvim-treesitter.configs` module
in its recent major rewrite. Migrate to `require("nvim-treesitter").setup`
and replace deprecated `vim.loop` with `vim.uv`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@shunsock shunsock merged commit 022e928 into main Mar 26, 2026
3 checks passed
@shunsock shunsock deleted the fix/nvimc-treesitter-config branch March 26, 2026 08:01
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