Chunk & Line_num failing to get correct treesitter node.
Describe the bug Chunk and line_num fail to get the correct treesitter node, only the outermost scope is highlighted. with use_treesitter = false both work as intended. Indent seems unaffected by treesitter.
To Reproduce Steps to reproduce the behavior: enable use_treesitter on chunk or line_num
Expected behavior chunk & line_num draw as expected in the spec
Screenshots
use_treesitter = true as in screenshot:
use_treesitter = false as in screenshot:
Additional context
treesitter configuration:
Further Info: neovim build: NVIM v0.10.0-dev-594ff34 Build type: RelWithDebInfo LuaJIT 2.1.1696795921
nvim-treesitter checkhealth:
============================================================================== nvim-treesitter: require("nvim-treesitter.health").check()
Installation ~
- WARNING
tree-sitterexecutable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall) - OK
nodefound v18.13.0 (only needed for :TSInstallFromGrammar) - OK
gitexecutable found. - OK
ccexecutable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: cc (Debian 12.2.0-14) 12.2.0 - OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.
OS Info: { machine = "x86_64", release = "5.15.90.1-microsoft-standard-WSL2", sysname = "Linux", version = "#1 SMP Fri Jan 27 02:56:13 UTC 2023" } ~
Parser/Features H L F I J
- bash ✓ ✓ ✓ . ✓
- c ✓ ✓ ✓ ✓ ✓
- css ✓ . ✓ ✓ ✓
- html ✓ ✓ ✓ ✓ ✓
- http ✓ . . . ✓
- json ✓ ✓ ✓ ✓ .
- lua ✓ ✓ ✓ ✓ ✓
- markdown ✓ . ✓ ✓ ✓
- markdown_inline ✓ . . . ✓
- python ✓ ✓ ✓ ✓ ✓
- query ✓ ✓ ✓ ✓ ✓
- tsx ✓ ✓ ✓ ✓ ✓
- vim ✓ ✓ ✓ . ✓
- vimdoc ✓ . . . ✓
- xml ✓ . ✓ ✓ ✓
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang} ~
fixed in latest version