ts-playground/README.md
2020-07-27 07:13:57 -05:00

828 B

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