You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
828 B
Markdown

# Neovim Treesitter Playground
4 years ago
View treesitter information directly in Neovim!
4 years ago
![nvim-treesitter-playground](demo.gif)
## Requirements
- Neovim [nightly](https://github.com/neovim/neovim#install-from-source)
- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) plugin
## Setup
Install the plugin (vim-plug shown):
```vim
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'nvim-treesitter/playground'
```
The configuration is like any other nvim-treesitter module.
```lua
require "nvim-treesitter.configs".setup {
playground = {
enable = true,
disable = {},
updatetime = 25 -- Debounced time for highlighting nodes in the playground from source code
}
}
```
## Usage
The tree can be toggled using the command `:TSPlaygroundToggle`.
# Roadmap
- [ ] Add interactive query highlighting