Skip to content

mks-h/treesitter-autoinstall.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

treesitter-autoinstall

This is a very simple Neovim plugin that provides automatic installation for the new rewrite of nvim-treesitter, since it no longer has this option.

Usage

You need to call the setup function in order for the plugin to work.

require("treesitter-autoinstall").setup()

Configuration

The following is the implicit plugin configuration. You can specify just the options you need. Notice that they are different from the original nvim-treesitter options — both in name and behaviour.

require("treesitter-autoinstall").setup({
    -- A list of *filetypes* to ignore.
	ignore = {},
    -- Auto-enable highlighting for installed grammars.
	highlight = true,
    -- A list of *filetypes* to also enable regex highlighting for
	regex = {},
})

License

Copyright 2025 Maksym Hazevych

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

A Neovim plugin around "nvim-treesitter" that provides auto-installation of parsers.

Topics

Resources

License

Stars

Watchers

Forks

Languages