Skip to content

Commit d912ea8

Browse files
author
Venkata Subramani Renduchintala
committed
fix(treesitter): use master textobjects module
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.
1 parent e51658e commit d912ea8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/plugins/configs/treesitter.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ return {
33
branch = "master",
44
build = ":TSUpdate",
55
dependencies = {
6-
"nvim-treesitter/nvim-treesitter-textobjects",
6+
{ "nvim-treesitter/nvim-treesitter-textobjects", branch = "master" },
77
"windwp/nvim-ts-autotag",
88
"nvim-treesitter/nvim-treesitter-refactor",
99
"andymass/vim-matchup",
1010
},
1111
config = function()
12-
local ts_repeat_move = require("nvim-treesitter-textobjects.repeatable_move")
12+
local ts_repeat_move = require("nvim-treesitter.textobjects.repeatable_move")
1313

1414
-- vim way: ; goes to the direction you were moving.
1515
vim.keymap.set({ "n", "x", "o" }, ";", ts_repeat_move.repeat_last_move)

0 commit comments

Comments
 (0)