Open antosha417 opened 1 year ago
same, getting this after update
This issue happens after a7a9ba714bcc31f5453a60d48598186b6487b75c
commit.
Using previous commit - 73e44f43c70289c70195b5e7bc6a077ceffddda4
.
I also ran into the same problem. You can avoid the error by commenting out keymaps.
textobjects = {
select = {
keymaps = {
-- ["af"] = "@function.outer",
-- ["if"] = "@function.inner",
},
commit hash e69a504baf2951d52e1f1fbb05145d43f236cbf1
This issue happens after
a7a9ba714bcc31f5453a60d48598186b6487b75c
commit. Using previous commit -73e44f43c70289c70195b5e7bc6a077ceffddda4
.
If anyone is using Lazy for package management, just add the commit hash while adding the plugin and sync.
{
'nvim-treesitter/nvim-treesitter-textobjects',
commit = "73e44f43c70289c70195b5e7bc6a077ceffddda4",
config = ...
}
Mitigates the issue for now, until an upstream patch is available.
Describe the bug Hey! I'm getting an error when opening rust files.
As far as I understand this tells me that some query is wrong. I tried to open queries for rust and saw that one of them is highlighted for some reason.
After commenting it out I don't see an error.
To Reproduce Steps to reproduce the behavior:
Expected behavior No error
Output of
:checkhealth nvim-treesitter
============================================================================== nvim-treesitter: require("nvim-treesitter.health").check() Installation ~ - OK `tree-sitter` found 0.20.7 (parser generator, only needed for :TSInstallFromGrammar) - OK `node` found v18.2.0 (only needed for :TSInstallFromGrammar) - OK `git` executable found. - OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: Apple clang version 15.0.0 (clang-1500.0.40.1) - OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI. OS Info: { machine = "arm64", release = "22.6.0", sysname = "Darwin", version = "Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000" } ~ Parser/Features H L F I J - bash ✓ ✓ ✓ . ✓ - c ✓ ✓ ✓ ✓ ✓ - comment ✓ . . . . - fennel ✓ ✓ ✓ . ✓ - go ✓ ✓ ✓ ✓ ✓ - grpcnvim ✓ . . . ✓ - hocon ✓ . . . ✓ - http ✓ . . . ✓ - javascript ✓ ✓ ✓ ✓ ✓ - json ✓ ✓ ✓ ✓ . - lua ✓ ✓ ✓ ✓ ✓ - markdown ✓ . ✓ ✓ ✓ - org ✓ . ✓ . ✓ - proto ✓ . ✓ . . - python ✓ ✓ ✓ ✓ ✓ - query ✓ ✓ ✓ ✓ ✓ - rust ✓ ✓ ✓ ✓ ✓ - scala ✓ ✓ ✓ . ✓ - tlaplus ✓ ✓ ✓ . ✓ - toml ✓ ✓ ✓ ✓ ✓ - typescript ✓ ✓ ✓ ✓ ✓ - vim ✓ ✓ ✓ . ✓ - vimdoc ✓ . . . ✓ - yaml ✓ ✓ ✓ ✓ ✓ Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang} ~
Output of
nvim --version
Additional context Didn't manage to fix this query myself, don't really understand what it does. But will contribute a fix if someone willing to help.