Skip to content

neovim: migrate nvim-treesitter to main branch for Neovim 0.12#45

Open
urugus wants to merge 1 commit intomasterfrom
claude/treesitter-migration-review-kyXZ7
Open

neovim: migrate nvim-treesitter to main branch for Neovim 0.12#45
urugus wants to merge 1 commit intomasterfrom
claude/treesitter-migration-review-kyXZ7

Conversation

@urugus
Copy link
Copy Markdown
Owner

@urugus urugus commented Apr 5, 2026

  • Switch nvim-treesitter and nvim-treesitter-textobjects to main branch
  • Replace deprecated nvim-treesitter.configs.setup() with new API
  • Replace ensure_installed with explicit install() calls
  • Use vim.treesitter.start() for highlighting (Neovim built-in)
  • Extract textobjects config into standalone setup with vim.keymap.set
  • Remove deprecated plugins: nvim-treesitter-refactor, nvim-yati, nvim-tree-docs
  • Remove dead module configs: rainbow, pairs, matchup, ts_context_commentstring, yati
  • Incremental selection now handled by Neovim 0.12 built-in (v_an/v_in)

https://claude.ai/code/session_017aG5xLX9oLgKPPaUHURd6V

- Switch nvim-treesitter and nvim-treesitter-textobjects to main branch
- Replace deprecated nvim-treesitter.configs.setup() with new API
- Replace ensure_installed with explicit install() calls
- Use vim.treesitter.start() for highlighting (Neovim built-in)
- Extract textobjects config into standalone setup with vim.keymap.set
- Remove deprecated plugins: nvim-treesitter-refactor, nvim-yati, nvim-tree-docs
- Remove dead module configs: rainbow, pairs, matchup, ts_context_commentstring, yati
- Incremental selection now handled by Neovim 0.12 built-in (v_an/v_in)

https://claude.ai/code/session_017aG5xLX9oLgKPPaUHURd6V
@urugus
Copy link
Copy Markdown
Owner Author

urugus commented Apr 5, 2026

注意点

  • incremental_selection (, , ): Neovim 0.12 のビルトイン v_an/v_in に置き換わります。以前のカスタムキーマップが必要なら別途設定が必要です
  • refactor の 'r/'d/'D キーマップ: LSP の rename/go-to-definition で代替可能です
  • 初回起動時: lazy.nvim の nvim-treesitter キャッシュを削除してください(~/.local/share/nvim/lazy/nvim-treesitter を削除して :Lazy sync)
  • tree-sitter CLI は Brewfile に既に含まれています(brew tree-sitter)

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.

2 participants