diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-01 13:19:00 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-03 18:19:18 +0200 |
| commit | 355d86fe6b67b014fae496e802c8ee46d6fa425c (patch) | |
| tree | 6d605dd7aeca62455725408dc3e11161989d2ed6 | |
| parent | bdf43b15df799ae12fadd4eb214e13704454dd98 (diff) | |
preds: declare set! predicate
| -rw-r--r-- | lua/nvim-treesitter/query_predicates.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/query_predicates.lua b/lua/nvim-treesitter/query_predicates.lua index f6a21f28..0bcb905e 100644 --- a/lua/nvim-treesitter/query_predicates.lua +++ b/lua/nvim-treesitter/query_predicates.lua @@ -63,3 +63,6 @@ query.add_predicate('is?', function(match, pattern, bufnr, pred) return vim.tbl_contains(types, kind) end) + +-- Just avoid some anoying warnings for this predicate +query.add_predicate('set!', function() return true end) |
