Neovim Error TreeSitter #136490
Replies: 1 comment
-
Ive had this error message come up to me once. And this could either be an issue of something else interferring with the nvim tree-sitter. From your treesitter config, It looks okay. The only thing I can think of is the lua parser not being installed causing it to not be found. Also what does it say when you tried updating it It could be a loading issue ,try adding maybe try setting You could also check Another thing you could try to do is rebuilt neovim but I understand thats probably not the option. But sometime it does fix the issues because the built from the startup was arranged in the wrong way. I would also take a look at this config file or this function If YOU REALLY CANT figure it out or if this does not fix the issue. |
Beta Was this translation helpful? Give feedback.
-
Body
Hi, first time setting up a Nvim config for Windows (I'm a linux user) I'm getting an error for treesitter. I've tried updating parsers, deleting parsers, updating lazy, re-installing treesitter but none of these worked.
Error executing vim.schedule lua callback: ...eovim/share/nvim/runtime/lua/vim/treesitter/language.lua:112: Failed to load parser for language 'lua': uv_dlopen: no error stack traceback: [C]: in function '_ts_add_language' ...eovim/share/nvim/runtime/lua/vim/treesitter/language.lua:112: in function 'add' ...m/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:111: in function 'new' ...m Files/Neovim/share/nvim/runtime/lua/vim/treesitter.lua:41: in function '_create_parser' ...m Files/Neovim/share/nvim/runtime/lua/vim/treesitter.lua:108: in function 'get_parser' ...a/lazy/telescope.nvim/lua/telescope/previewers/utils.lua:141: in function 'ts_highlighter' ...a/lazy/telescope.nvim/lua/telescope/previewers/utils.lua:119: in function 'highlighter' ...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:248: in function 'fn' vim/_editor.lua:351: in function <vim/_editor.lua:350>
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
require("nvim-treesitter.configs").setup({
-- A list of parser names, or "all"
ensure_installed = {
"vimdoc", "javascript", "typescript", "c", "lua", "rust",
"jsdoc", "bash", "java", "html", "css", "zig",
},
}
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions