mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
feat(predicates)!: rename has-type to kind-eq to align with Helix
No point in having a different name for the same predicate.
This commit is contained in:
parent
deb76a224a
commit
a80fe081b4
8 changed files with 16 additions and 16 deletions
|
|
@ -124,7 +124,7 @@ end, true)
|
|||
---@param _bufnr integer
|
||||
---@param pred string[]
|
||||
---@return boolean|nil
|
||||
query.add_predicate("has-type?", function(match, _pattern, _bufnr, pred)
|
||||
query.add_predicate("kind-eq?", function(match, _pattern, _bufnr, pred)
|
||||
if not valid_args(pred[1], pred, 2) then
|
||||
return
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue