828 B
828 B
Neovim Treesitter Playground
View treesitter information directly in Neovim!
Requirements
- Neovim nightly
- nvim-treesitter plugin
Setup
Install the plugin (vim-plug shown):
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'nvim-treesitter/playground'
The configuration is like any other nvim-treesitter module.
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