Skip to content

fix(treesitter): use master textobjects module#40

Merged
venkatarenduchintala merged 1 commit into
mainfrom
fix/treesitter-textobjects-module-path
Jul 6, 2026
Merged

fix(treesitter): use master textobjects module#40
venkatarenduchintala merged 1 commit into
mainfrom
fix/treesitter-textobjects-module-path

Conversation

@venkatarenduchintala

Copy link
Copy Markdown
Owner

Problem

Neovim startup failed with:

Failed to run `config` for nvim-treesitter
module 'nvim-treesitter-textobjects.repeatable_move' not found

treesitter.lua required nvim-treesitter-textobjects.repeatable_move — the module path from the plugin's rewritten main branch — while the installed plugin (and the whole config: nvim-treesitter pinned to master, textobjects configured via nvim-treesitter.configs.setup()) uses the master-branch API, where the module lives at nvim-treesitter.textobjects.repeatable_move.

Fix

  • Correct the require path to the master-branch module.
  • Pin the dependency to branch = "master" explicitly: upstream froze master on 2025-10-31 and switched the default branch to main, so a fresh clone without the pin would install the incompatible rewrite.

Verification

nvim --headless starts cleanly; require('nvim-treesitter.textobjects.repeatable_move').repeat_last_move resolves to a function.

🤖 Generated with Claude Code

require() used the main-branch module path
nvim-treesitter-textobjects.repeatable_move, but the plugin is on
master where the module is nvim-treesitter.textobjects.repeatable_move,
breaking startup. Also pin the dependency to branch master so fresh
installs don't clone the incompatible main default branch.
@venkatarenduchintala venkatarenduchintala merged commit b782cb2 into main Jul 6, 2026
2 checks passed
@venkatarenduchintala venkatarenduchintala deleted the fix/treesitter-textobjects-module-path branch July 6, 2026 21:51
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