An open API service indexing awesome lists of open source software.

https://github.com/mks-h/treesitter-autoinstall.nvim

A Neovim plugin around "nvim-treesitter" that provides auto-installation of parsers.
https://github.com/mks-h/treesitter-autoinstall.nvim

neovim nvim-treesitter

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# treesitter-autoinstall

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

[nvim-treesitter]: https://github.com/nvim-treesitter/nvim-treesitter/tree/main

## Usage

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

```lua
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.

```lua
require("treesitter-autoinstall").setup({
-- A list of *treesitter languages* to ignore.
ignore = {},
-- Auto-enable highlighting for installed languages.
highlight = true,
-- A list of *treesitter languages* 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.