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 = {},
keymaps = {
open = 'gtd' -- Opens the playground for current buffer (if applicable)
},
updatetime = 25 -- Debounced time for highlighting nodes in the playground from source code
}
}
Roadmap
- Add interactive query highlighting