nvim-treesitter/playground

TSHighlightCapturesUnderCursor not working on latest nvim master

petobens opened this issue · 0 comments

Hi! On latest neovim master whenever I run :TSHighlightCapturesUnderCursor I get the following error:

Error executing Lua callback: ...tart/playground/lua/nvim-treesitter-playground/utils.lua:68: attempt to call method '_get_hl_from_capture' (a nil value)
stack traceback:
        ...tart/playground/lua/nvim-treesitter-playground/utils.lua:68: in function 'fn'
        /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:192: in function 'for_each_tree'
        ...tart/playground/lua/nvim-treesitter-playground/utils.lua:40: in function 'get_hl_groups_at_position'
        ...rt/playground/lua/nvim-treesitter-playground/hl-info.lua:13: in function 'get_treesitter_hl'
        ...rt/playground/lua/nvim-treesitter-playground/hl-info.lua:60: in function 'show_hl_captures'
        ...r/start/playground/plugin/nvim-treesitter-playground.lua:27: in function <...r/start/playground/plugin/nvim-treesitter-playground.lua:26>