A neovim plugin that summons textobjects, just like magic!
Warning: tree-sitter and nvim-treesitter are an experimental feature of nightly versions of Neovim. Please consider the experience with this plug-in as experimental until tree-sitter support in Neovim is stable! It is recommended using the nightly builds of Neovim or the latest stable version.
You can install accio with your favorite package manager, or using the default pack feature of Neovim! This plugin does require nvim-treesitter/nvim-treesitter.
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'tylersaunders/accio'
Use <leader>ap
when hovering over a single line array to pivot the array to multiple lines.
lua:
require('accio').setup({})
vimscript:
lua require('accio').setup({})
inspired by nvim-treesitter-textobjects