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.
 
 
 
Steven Sojka c8dc6a18b1 progress on query editor 4 years ago
lua progress on query editor 4 years ago
plugin progress on query editor 4 years ago
queries/query progress on query editor 4 years ago
syntax feat(plugin): initial mvp 4 years ago
.editorconfig Initial commit 4 years ago
LICENSE Initial commit 4 years ago
README.md feat(playground): add toggle command 4 years ago
demo.gif add cleanup logic and update readme 4 years ago

README.md

Neovim Treesitter Playground

View treesitter information directly in Neovim!

nvim-treesitter-playground

Requirements

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