aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vigouroux <thomas.vigouroux@protonmail.com>2022-05-03 19:46:11 +0200
committerThomas Vigouroux <thomas.vigouroux@protonmail.com>2022-05-03 19:46:11 +0200
commite453b6391e1483286385b925f5799dfc4feebdd8 (patch)
tree5f0217d6d05c105401c4bf9a1261b422cb80635c
parent4df11463b288a227a7052b7fd9c0a3f737a51c1e (diff)
downloadrneovim-e453b6391e1483286385b925f5799dfc4feebdd8.tar.gz
rneovim-e453b6391e1483286385b925f5799dfc4feebdd8.tar.bz2
rneovim-e453b6391e1483286385b925f5799dfc4feebdd8.zip
fix(treesitter): bump match limit up
This avoids ignoring too many match results, and avoid highlighting being blank in some files.
-rw-r--r--src/nvim/lua/treesitter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/treesitter.c b/src/nvim/lua/treesitter.c
index a871cd29ce..f36a00d9cd 100644
--- a/src/nvim/lua/treesitter.c
+++ b/src/nvim/lua/treesitter.c
@@ -1122,7 +1122,7 @@ static int node_rawquery(lua_State *L)
// TODO(clason): API introduced after tree-sitter release 0.19.5
// remove guard when minimum ts version is bumped to 0.19.6+
#ifdef NVIM_TS_HAS_SET_MATCH_LIMIT
- ts_query_cursor_set_match_limit(cursor, 32);
+ ts_query_cursor_set_match_limit(cursor, 64);
#endif
ts_query_cursor_exec(cursor, query, node);