mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
feat(treesitter): allow disabling captures and patterns on TSQuery (#32790)
Problem: Cannot disable individual captures and patterns in treesitter queries. Solution: * Expose the corresponding tree-sitter API functions for `TSQuery` object. * Add documentation for `TSQuery`. * Return the pattern ID from `get_captures_at_pos()` (and hence `:Inspect!`).
This commit is contained in:
@@ -328,10 +328,12 @@ local config = {
|
||||
'treesitter.lua',
|
||||
'language.lua',
|
||||
'query.lua',
|
||||
'tsquery.lua',
|
||||
'highlighter.lua',
|
||||
'languagetree.lua',
|
||||
'dev.lua',
|
||||
},
|
||||
append_only = { 'tsquery.lua' },
|
||||
files = {
|
||||
'runtime/lua/vim/treesitter/_meta/',
|
||||
'runtime/lua/vim/treesitter.lua',
|
||||
|
Reference in New Issue
Block a user