shellRaining / hlchunk.nvim

This is the lua implementation of nvim-hlchunk, you can use this neovim plugin to highlight your indent line and the current chunk (context) your cursor stayed
MIT License
472 stars 29 forks source link

Chunk & Line_num failing to get correct treesitter node. #73

Closed ripjackie closed 2 months ago

ripjackie commented 9 months ago

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 commented 9 months ago

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 ~

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

shellRaining commented 2 months ago

fixed in latest version