Closed stormespace closed 11 months ago
It's like there's a lack of installation of the lua package for nvtreesitter.
You can try command TSInstall lua
to install this.
Or try add to some lines to install all packages
ensure_installed = "all",
ignore_install = { "phpdoc", "comment" },
Do git init
in the folder of your TS project for the LSP to work.
thanks now it works
when i open the init.lua file it always gets an error like this
Error detected while processing FileType Autocommands for "*": Error executing lua callback: ...im/0.9.4/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid structure at position 2992 for language lua stack traceback: [C]: in function '_ts_parse_query' ...im/0.9.4/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get' ...4/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:114: in function 'new' ...r/neovim/0.9.4/share/nvim/runtime/lua/vim/treesitter.lua:61: in function '_create_parser' ...r/neovim/0.9.4/share/nvim/runtime/lua/vim/treesitter.lua:131: in function 'get_parser' ...r/neovim/0.9.4/share/nvim/runtime/lua/vim/treesitter.lua:459: in function 'start' ...m/lazy/nvim-treesitter/lua/nvim-treesitter/highlight.lua:20: in function 'attach' ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:509: in function 'attach_module' ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:532: in function 'reattach_module' ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:133: in function <...vim/lazy/nvim-treesitter/lua/nv im-treesitter/configs.lua:132> [C]: in function 'nvim_exec_autocmds' ...hare/nvim/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:157: in function <...hare/nvim/lazy/lazy.nvim/lua/la zy/core/handler/event.lua:156> [C]: in function 'xpcall' .../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:113: in function 'try' ...hare/nvim/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:156: in function 'trigger' ...ocal/share/nvim/lazy/LazyVim/lua/lazyvim/util/plugin.lua:103: in function '' vim/_editor.lua: in function <vim/_editor.lua:0>
and after that this error another errorand when i when i am writing lua it always has an error
language servers(for example typescript) dont give good completions for the code