hlchunk.nvim icon indicating copy to clipboard operation
hlchunk.nvim copied to clipboard

Chunk & Line_num failing to get correct treesitter node.

Open ripjackie opened this issue 2 years ago • 1 comments

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: image use_treesitter = false as in screenshot: image

Additional context treesitter configuration: image

ripjackie avatar Oct 20 '23 20:10 ripjackie

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-sitter executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
  • OK node found v18.13.0 (only needed for :TSInstallFromGrammar)
  • OK git executable found.
  • OK cc executable 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} ~

ripjackie avatar Oct 20 '23 20:10 ripjackie

fixed in latest version

shellRaining avatar May 25 '24 08:05 shellRaining