LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable
https://www.chrisatmachine.com/
GNU General Public License v3.0
5.31k stars 1.17k forks source link

(error message too long to put here) #184

Closed sandbands closed 2 years ago

sandbands commented 2 years ago

Every time I open Neovim I get this error message.

Error detected while processing /home/itsrxmmy/.config/nvim/init.lua:
E5113: Error while calling lua chunk: ...er/start/nvim-treesitter/lua/nvim-treesitter/install.lua:377: Parser not avail
able for language maintained
stack traceback:
        [C]: in function 'get_parser_install_info'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/install.lua:377: in function 'install_lang'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/install.lua:423: in function 'ensure_installed'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:394: in function 'setup'
        /home/itsrxmmy/.config/nvim/lua/user/treesitter.lua:6: in main chunk
        [C]: in function 'require'
        /home/itsrxmmy/.config/nvim/init.lua:8: in main chunk

OS: Manjaro KDE Plasma - Kernel 5.15.49 Neovim Version: 0.7.0 Lua Version: 5.4.4

And No, I did not have any previous Neovim configuration.

manunio commented 2 years ago

Changing ensure_installed = "maintained" to ensure_installed = "all" in ~/.config/nvim/lua/user/treesitter.lua fixed this issue for me. or instead of "all" you can try with only languages you need, like following.

  -- A list of parser names, or "all"
  ensure_installed = { "c", "lua", "rust" },

in https://github.com/nvim-treesitter/nvim-treesitter#modules

sandbands commented 2 years ago

thanks it worked