nvim-neorocks / rocks-treesitter.nvim

A "just works" tree-sitter setup for rocks.nvim!
GNU General Public License v3.0
36 stars 4 forks source link

Error toml parser #7

Closed CRAG666 closed 7 months ago

CRAG666 commented 7 months ago

Se ha detectado un error al procesar BufWinEnter Auto-órdenes para "*": Error executing vim.schedule lua callback: ...nux64/share/nvim/runtime/lua/vim/treesitter/language.lua:104: no parser for 'toml' language, see :help treesitter-parsers
stack traceback:
[C]: in function 'error'
...nux64/share/nvim/runtime/lua/vim/treesitter/language.lua:104: in function 'add'
...4/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:111: in function 'new'
...y/nvim-linux64/share/nvim/runtime/lua/vim/treesitter.lua:41: in function '_create_parser'
...y/nvim-linux64/share/nvim/runtime/lua/vim/treesitter.lua:108: in function 'get_parser'
...y/nvim-linux64/share/nvim/runtime/lua/vim/treesitter.lua:416: in function 'start'
/home/think-crag/Git/dotfiles/config/nvim/init.lua:14: in function </home/think-crag/Git/dotfiles/config/nvim/ init.lua:13>
[C]: in function 'wait'
...are/nvim/rocks/rocks_rtp/lua/frecency/database/table.lua:50: in function 'wait_ready'
...are/nvim/rocks/rocks_rtp/lua/frecency/database/table.lua:25: in function '__index'
...cal/share/nvim/rocks/rocks_rtp/lua/frecency/database.lua:60: in function 'has_entry'
.../.local/share/nvim/rocks/rocks_rtp/lua/frecency/init.lua:71: in function 'assert_db_entries'
.../.local/share/nvim/rocks/rocks_rtp/lua/frecency/init.lua:31: in function 'setup'
...m/rocks/rocks_rtp/lua/telescope/_extensions/frecency.lua:23: in function 'register'
...m/rocks/rocks_rtp/lua/telescope/_extensions/frecency.lua:65: in function <...m/rocks/rocks_rtp/lua/telescop e/_extensions/frecency.lua:62>

mrcjkb commented 7 months ago

According to the stack trace, you're calling vim.treesitter.start() in /home/think-crag/Git/dotfiles/config/nvim/init.lua, but the tree-sitter-toml parser is not installed.

CRAG666 commented 7 months ago

@mrcjkb Rocks-tresitter is supposed to automatically call treesitter, however this never happens, I've tried it for hours and the syntax highlighting never happens unless I make the call explicitly :(

mrcjkb commented 7 months ago

Could this be because of https://github.com/nvim-neorocks/rocks-treesitter.nvim/issues/8?

CRAG666 commented 7 months ago

yes

CRAG666 commented 7 months ago

close this;