LunarVim / Neovim-from-scratch

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

treesitter gives error #135

Closed girishji closed 1 year ago

girishji commented 2 years ago

following line in treesitter.lua should be modified to specify languages ensure_installed = { "maintained" },

https://issuemode.com/issues/nvim-treesitter/nvim-treesitter/78109062

antonio-hickey commented 2 years ago

Inside the treesitter.lua file:

Replace ensure_installed = "maintained" With ensure_installed = { "lua", "*LANGUAGE1*", ... "*LANGUAGE N*"}

Note: "LANGUAGE" is just a place holder, replace this with your desired language.

girishji commented 2 years ago

maybe use ensure_installed = "all". leaving it as "maintained" gives error

antonio-hickey commented 2 years ago

I'm not suggesting to leave it as "maintained", I'm saying I fixed this error by specifying my languages. Using "all" is probably better but I just specified the languages I actually use.

oleg-medovikov commented 2 years ago
image
habsfanongit commented 2 years ago

Had the same error with a fresh install. Changing ensure_installed = "maintained" to ensure_installed = "all" resolved the error for me.

lv8pv commented 2 years ago

Same error, fixed it as mention above

antonio-hickey commented 2 years ago

This issue should be closed, I believe it was fixed with https://github.com/LunarVim/Neovim-from-scratch/pull/152

gnmearacaun commented 2 years ago

This issue should be closed, I believe it was fixed with #152

It is addressed in #131