You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use nvim-treehopper in a tsx file, I get the following error:
E5108: Error executing lua ...local/share/nvim/runtime/lua/vim/treesitter/language.lua:25: no parser for'typescriptreact' language, see :help treesitter-parsers
stack traceback:
[C]: infunction'error'
...local/share/nvim/runtime/lua/vim/treesitter/language.lua:25: infunction'require_language'
/usr/local/share/nvim/runtime/lua/vim/treesitter.lua:39: infunction'_create_parser'
/usr/local/share/nvim/runtime/lua/vim/treesitter.lua:98: infunction'get_parser'
...nvim/site/pack/packer/start/nvim-treehopper/lua/tsht.lua:53: infunction'nodes'
[string ":lua"]:1: in main chunk
Press ENTER or typecommand to continue
Peek.2022-06-11.11-02.mp4
This seems to be caused by the treesitter parser for the typescriptreact filetype being named tsx. nvim-treehopper tries to use the parser with the same name as the filetype, which is not the case for quite a few filetypes, as shown in nvim-treesitter.
I have decided to report this issue separately from my attempt at solving it (#14), since the progress on that PR has stifled while the issue remains.
The text was updated successfully, but these errors were encountered:
When trying to use
nvim-treehopper
in atsx
file, I get the following error:Peek.2022-06-11.11-02.mp4
This seems to be caused by the treesitter parser for the
typescriptreact
filetype being namedtsx
.nvim-treehopper
tries to use the parser with the same name as the filetype, which is not the case for quite a few filetypes, as shown in nvim-treesitter.I have decided to report this issue separately from my attempt at solving it (#14), since the progress on that PR has stifled while the issue remains.
The text was updated successfully, but these errors were encountered: