alpha2phi / neovim-for-beginner

A configuration for Neovim beginners.
MIT License
432 stars 107 forks source link

treesitter configuration may have outdated #99

Open zhangzhang opened 1 year ago

zhangzhang commented 1 year ago

the treesitter configuration seems has an outdated configuration:

    1 local M = {}
    2
    3 function M.setup()
    4   require("nvim-treesitter.configs").setup {
    5     -- One of "all", "maintained" (parsers with maintainers), or a list of languages
    6     ensure_installed = "maintained",
    7
    8     -- Install languages synchronously (only applied to `ensure_installed`)
    9     sync_install = false,
   10
   11     highlight = {
   12       -- `false` will disable the whole extension
   13       enable = true,
   14     },
   15   }
   16 end
   17
   18 return M

Line 6 gives an error: "Parser not available for language maintained" when I start with nvb. Suggest to change it to "all"

krlenell commented 1 month ago

Packer is not working with treesitter and requires a different run command

https://github.com/nvim-treesitter/nvim-treesitter/issues/3135#issuecomment-1762219554