Skip to content

Custom text object not working #1561

Closed Answered by echasnovski
Muizzyranking asked this question in Q&A
Discussion options

You must be logged in to vote

Tree-sitter textobjects in 'mini.ai' (and input surroundings in 'mini.surround', for that matter) require tree-sitter queries which define how specific captures should be computed. You can check more in this portion of the help.

The easiest solution here is use 'nvim-treesitter/nvim-treesitter-textobjects' dependency. Using 'nvim-treesitter/nvim-treesitter' itself is not really necessary as textobject will fall back to the built-in vim.treesitter usage (which should be on par with outer plugin at least since Neovim>=0.9).

I pretty sure this is the problem here. If you still don't have custom tree-sitter textobjects working after installing 'nvim-treesitter-textobjects', feel free to add m…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Muizzyranking
Comment options

@Muizzyranking
Comment options

@echasnovski
Comment options

@Muizzyranking
Comment options

@echasnovski
Comment options

Answer selected by Muizzyranking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.ai
2 participants