feat(install): add "maintained" option to only install maintained parsers

Unmaintained parsers only give users little benefit but take sometimes a
a long time to install (e.g. Markdown, Julia, Haskell parser). We could
recommend to only install maintained parsers by default.
This commit is contained in:
Stephan Seitz 2020-09-27 12:13:11 +02:00 committed by Stephan Seitz
parent 04ff77442a
commit c3b526fe51
5 changed files with 16 additions and 5 deletions

View file

@ -36,7 +36,7 @@ To enable supported features, put this in your `init.vim` file:
>
lua <<EOF
require'nvim-treesitter.configs'.setup {
ensure_installed = "all", -- one of "all", "language", or a list of languages
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
highlight = {
enable = true, -- false will disable the whole extension
disable = { "c", "rust" }, -- list of language that will be disabled