Neovim-from-scratch icon indicating copy to clipboard operation
Neovim-from-scratch copied to clipboard

treesitter gives error

Open girishji opened this issue 2 years ago • 8 comments

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

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

girishji avatar May 02 '22 15:05 girishji

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.

antonio-hickey avatar May 05 '22 17:05 antonio-hickey

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

girishji avatar May 06 '22 13:05 girishji

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.

antonio-hickey avatar May 06 '22 21:05 antonio-hickey

image

oleg-medovikov avatar May 07 '22 18:05 oleg-medovikov

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

habsfanongit avatar May 20 '22 19:05 habsfanongit

Same error, fixed it as mention above

lv8pv avatar May 24 '22 13:05 lv8pv

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

antonio-hickey avatar May 24 '22 13:05 antonio-hickey

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

It is addressed in #131

gnmearacaun avatar May 31 '22 20:05 gnmearacaun