Skip to content

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

Merged
urugus merged 1 commit intomasterfrom
claude/treesitter-migration-review-kyXZ7
Apr 10, 2026
Merged

neovim: migrate nvim-treesitter to main branch for Neovim 0.12#45
urugus merged 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)

@urugus urugus merged commit d25694a into master Apr 10, 2026
6 checks passed
@urugus urugus deleted the claude/treesitter-migration-review-kyXZ7 branch April 10, 2026 02:06
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