Skip to content

Automatically install treesitter parsers with ts-install.nvim #1951

@tpwo

Description

@tpwo

Hello, I recently synced my fork, and I noticed that I lost syntax highlighting in most of filetypes I use daily.

Investigation showed me that treesitter's auto_install=true was dropped in 7ea937d.

To get highlighting back, I started adding missing filetypes to the list of parsers manually one-by-one, but it's quite annoying once you were used to auto_install.

So I dug more. In treesitter commit which removed auto_install they suggest using a separate plugin to keep the old behavior: nvim-treesitter/nvim-treesitter@ab230ea

https://github.com/lewis6991/ts-install.nvim

I was able to make it work in my fork: tpwo@ab0222a

Would you accept a PR doing something like that for the main repo? It's adding one more plugin, but having parsers installed automatically is quite convenient, so IMO it makes sense for the target audience of kickstart. Do you agree?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions