0

I have installed neovim, it was cool so I installed vim-treesitter plugin. I'm trying to use it but I get some error message.

I can't find solution about it. Could you help me?

enter image description here

This is the error message I get:

enter image description here and this is my init.vim file

I just copied the blog code, so I don't know well sorry ㅠㅠ

2
  • 3
    Welcome to Vim :-). We will look at your problem but it would be helpful if instead of pasting a screen shot you could past the actual text as a quotation such that it can be reused by the one trying to reproduce your problem. Commented Aug 15, 2022 at 8:06
  • Probably: github.com/nvim-treesitter/nvim-treesitter/issues/… :S
    – madflow
    Commented Jan 13, 2023 at 7:39

2 Answers 2

0

Does the error message say parser not available for language?

If so, that suggests there's need to install/configure a parser.

What language/filetype needs a parser? What type of file are you editing in when this error appear? If this error appears when you're editing init.vim then maybe you need a parser for the vim filetype?

Also...

Images of code are difficult to read. Please copy and paste the code itself (not an image/screenshot of it).

Copy+pasting your error messages is important to do because in addition to pasting the errors into your question here when you're talking to us (this makes it easier for us to help you) you can also paste the errors into the search engine you use. For example, go to https://duckduckgo.com/ and search for:

neovim treesitter parser not available

or try this search query:

init.vim parser not available

or maybe this parser not avaiable error occurs when you're editing .xyz files? In which case search:

xyz treesitter parser neovim

Reading error messages isn't easy at first because it's hard to tell which part of it is most important... which part of the error message do you ignore, and which part of the error message do you use in your websearch/question? In your case now it looks like parser not available is the most important part.

4
  • Additionally, if you're struggling to get treesitter working, you might want to check out github.com/LunarVim/nvim-basic-ide and github.com/LunarVim/Neovim-from-scratch.
    – alec
    Commented Aug 15, 2022 at 10:47
  • 1
    As much as I agree with all of the advice given here, I don't think this helpfully answers the OP's question (cf. vi.stackexchange.com/help/how-to-answer)
    – D. Ben Knoble
    Commented Aug 15, 2022 at 13:23
  • If you said this "doesn't comprehensively answer OP's question" I would completely agree. But it was much too verbose for a comment and it seems like the information would be helpful in this circumstance, particularly considering the sparseness of info in the question itself and the lack of other answers and the urgent need to get this neovim instance working properly :)
    – alec
    Commented Aug 15, 2022 at 18:05
  • 1
    The sparseness of Q info is a reason to not answer, generally. And I don't know where you're drawing "urgent need" from. This answer basically explains to (1) google the problem and (2) read the error messages. Certainly short enough for a comment.
    – D. Ben Knoble
    Commented Aug 15, 2022 at 18:09
0

The input fields for ensure_installed is supposed to be a lua table. Something like ensure_installed = {'lua', 'c'} you are missing the curly braces in the Lua block for this attribute.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.