Skip to content

fix: update nvim-treesitter config for v2 API compatibility#8

Merged
klee1611 merged 3 commits into
masterfrom
develop
May 3, 2026
Merged

fix: update nvim-treesitter config for v2 API compatibility#8
klee1611 merged 3 commits into
masterfrom
develop

Conversation

@klee1611
Copy link
Copy Markdown
Owner

@klee1611 klee1611 commented May 3, 2026

Summary

  • Update nvim-treesitter config to use v2 API — setup() in v2 only accepts install_dir; all previous options (highlight, ensure_installed, indent, auto_install) were silently ignored
  • Switch to vim.treesitter.start via FileType autocmd to properly enable syntax highlighting
  • Add manual parser install check to replace ensure_installed

Test plan

  • Open a .ex file and confirm Elixir syntax highlighting is active
  • Open other file types (Lua, JS, Python, etc.) and confirm highlighting works

🤖 Generated with Claude Code

klee1611 and others added 3 commits March 24, 2026 18:34
…able()

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
v2 setup() only accepts install_dir; highlight/ensure_installed/indent
options were silently ignored. Switch to vim.treesitter.start autocmd
for highlighting and manual parser install check.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@klee1611 klee1611 merged commit 1d6a5d0 into master May 3, 2026
7 checks passed
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