@grappas I was running into the same issue, I was able to avoid it for the time being by editing the PKGBUILD to build and make the bundled tree-sitter dependency.
I assume this means that the standard tree-sitter version in our main repos is somehow the culprit? Not sure, maybe others with more insight can chime in.
--edit So yes, appears to be the issue with the standard tree-sitter package which is from Feb '23
Meanwhile the ts_query_cursor_set_max_start_depth
api was not added until Apr '23
tldr; will need to either install tree-sitter-git from the aur, or edit the neovim-git PKGBUILD to build and use the bundled tree-sitter dependency -- at least until the tree-sitter package from the main repos is updated
here's an example of modifying build()
to use the bundled
build() {
cmake -S"$_pkgname/cmake.deps" -B"$_pkgname/.deps" \
-GNinja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUSE_BUNDLED=OFF \
-DUSE_BUNDLED_TS=ON
cmake --build "$_pkgname/.deps"
cmake -S"$_pkgname" -Bbuild \
-GNinja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
Pinned Comments
fwalch commented on 2016-07-04 19:52 (UTC) (edited on 2016-07-04 19:54 (UTC) by fwalch)