Closed loqusion closed 2 years ago
Seems I got the same ERROR
E5108: Error executing lua: ...ter-textobjects/lua/nvim-treesitter/textobjects/move.lua:53: bad argument #1 to 'ipairs' (table expected, got nil)
stack traceback:
[C]: in function 'ipairs'
...ter-textobjects/lua/nvim-treesitter/textobjects/move.lua:53: in function 'move'
...ter-textobjects/lua/nvim-treesitter/textobjects/move.lua:73: in function <...ter-textobjects/lua/nvim-treesitter/textobjects/move.lua:72>
...r-textobjects/lua/nvim-treesitter/textobjects/attach.lua:28: in function <...r-textobjects/lua/nvim-treesitter/textobjects/attach.lua:27>
Can confirm, now the mappings are created for me but I'm getting the same error.
E5108: Error executing lua: ...ter-textobjects/lua/nvim-treesitter/textobjects/move.lua:53: bad argument #1 to 'ipairs' (table expected, got nil)
stack traceback:
[C]: in function 'ipairs'
...ter-textobjects/lua/nvim-treesitter/textobjects/move.lua:53: in function 'move'
...ter-textobjects/lua/nvim-treesitter/textobjects/move.lua:73: in function <...ter-textobjects/lua/nvim-treesitter/textobjects/move.lua:72>
...r-textobjects/lua/nvim-treesitter/textobjects/attach.lua:28: in function <...r-textobjects/lua/nvim-treesitter/textobjects/attach.lua:27>
Describe the bug
'move' mappings are not created
To Reproduce
Here's my treesitter config. The mappings I made for 'move' don't work, and when I enter
:map ]m
, etc to check if the mappings are made, it says "No mapping found". However, the 'select' mappings are still made.Output of
:checkhealth nvim-treesitter
nvim-treesitter: require("nvim-treesitter.health").check() ======================================================================== ## Installation - OK: `tree-sitter` found 0.20.6 (parser generator, only needed for :TSInstallFromGrammar) - OK: `node` found v18.8.0 (only needed for :TSInstallFromGrammar) - OK: `git` executable found. - OK: `/usr/bin/clang` executable found. Selected from { "/usr/bin/clang", "cc", "gcc", "clang", "cl", "zig" } Version: Apple clang version 13.1.6 (clang-1316.0.21.2.5) - OK: Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI. ## Parser/Features H L F I J - glsl ✓ ✓ ✓ ✓ ✓ - pascal ✓ ✓ ✓ ✓ ✓ - ruby ✓ ✓ ✓ ✓ ✓ - cuda ✓ ✓ ✓ ✓ ✓ - d ✓ . ✓ ✓ ✓ - cpp ✓ ✓ ✓ ✓ ✓ - ql ✓ ✓ . ✓ ✓ - commonlisp ✓ ✓ ✓ . . - teal ✓ ✓ ✓ ✓ ✓ - sxhkdrc ✓ . ✓ . ✓ - gitignore ✓ . . . . - embedded_template✓ . . . ✓ - tiger ✓ ✓ ✓ ✓ ✓ - m68k ✓ ✓ ✓ . ✓ - rego ✓ . . . ✓ - gomod ✓ . . . ✓ - nix ✓ ✓ ✓ . ✓ - elixir ✓ ✓ ✓ ✓ ✓ - julia ✓ ✓ ✓ ✓ ✓ - kotlin ✓ ✓ ✓ . ✓ - v ✓ ✓ ✓ ✓ ✓ - racket ✓ . ✓ . ✓ - astro ✓ ✓ ✓ ✓ ✓ - qmljs ✓ . ✓ . . - yaml ✓ ✓ ✓ ✓ ✓ - wgsl ✓ . ✓ . . - meson ✓ . ✓ . ✓ - elvish ✓ . . . ✓ - norg . . . . . - agda ✓ . ✓ . . - jsonc ✓ ✓ ✓ ✓ ✓ - solidity ✓ . . . . - lalrpop ✓ ✓ . . . - json ✓ ✓ ✓ ✓ . - comment ✓ . . . . - prisma ✓ . . . . - cooklang ✓ . . . . - vala ✓ . ✓ . . - hack ✓ . . . . - glimmer ✓ . . . . - foam ✓ ✓ ✓ ✓ ✓ - make ✓ . . . ✓ - toml ✓ ✓ ✓ ✓ ✓ - bash ✓ ✓ ✓ . ✓ - rasi ✓ ✓ ✓ ✓ . - rnoweb ✓ . ✓ . ✓ - vim ✓ ✓ ✓ . ✓ - tlaplus ✓ ✓ ✓ . ✓ - cmake ✓ . ✓ . . - lua ✓ ✓ ✓ ✓ ✓ - devicetree ✓ ✓ ✓ ✓ ✓ - latex ✓ . ✓ . ✓ - http ✓ . . . ✓ - markdown_inline✓ . . . ✓ - help ✓ . . . . - llvm ✓ . . . . - typescript ✓ ✓ ✓ ✓ ✓ - hcl ✓ . ✓ ✓ ✓ - hocon ✓ . . . ✓ - fortran ✓ . ✓ ✓ . - haskell ✓ . ✓ . ✓ - hjson ✓ ✓ ✓ ✓ ✓ - bibtex ✓ . ✓ ✓ . - slint ✓ . . ✓ . - pioasm ✓ . . . ✓ - supercollider ✓ ✓ ✓ ✓ ✓ - json5 ✓ . . . ✓ - html ✓ ✓ ✓ ✓ ✓ - javascript ✓ ✓ ✓ ✓ ✓ - scala ✓ . ✓ . ✓ - beancount ✓ . ✓ . . - tsx ✓ ✓ ✓ ✓ ✓ - vue ✓ . ✓ ✓ ✓ - todotxt ✓ . . . . - r ✓ ✓ . ✓ ✓ - rust ✓ ✓ ✓ ✓ ✓ - svelte ✓ . ✓ ✓ ✓ - zig ✓ . ✓ ✓ ✓ - c_sharp ✓ ✓ ✓ . ✓ - turtle ✓ ✓ ✓ ✓ ✓ - query ✓ ✓ ✓ ✓ ✓ - swift ✓ ✓ . . . - ninja ✓ . ✓ ✓ . - markdown ✓ . ✓ . ✓ - elm ✓ . . . ✓ - fish ✓ ✓ ✓ ✓ ✓ - ocamllex ✓ . . . ✓ - org . . . . . - graphql ✓ . . ✓ ✓ - ocaml_interface✓ ✓ ✓ . ✓ - c ✓ ✓ ✓ ✓ ✓ - jsdoc ✓ . . . . - heex ✓ ✓ ✓ ✓ ✓ - fennel ✓ ✓ . . ✓ - eex ✓ . . . ✓ - clojure ✓ ✓ ✓ . ✓ - regex ✓ . . . . - surface ✓ . ✓ ✓ ✓ - verilog ✓ ✓ ✓ . ✓ - gleam ✓ ✓ ✓ ✓ ✓ - gowork ✓ . . . ✓ - rst ✓ ✓ . . ✓ - dart ✓ ✓ . ✓ ✓ - godot_resource ✓ ✓ ✓ . . - erlang ✓ . ✓ . . - yang ✓ . ✓ ✓ . - scss ✓ . . ✓ . - gdscript ✓ ✓ . ✓ ✓ - css ✓ . ✓ ✓ ✓ - pug ✓ . . . ✓ - sql ✓ . . . ✓ - ledger ✓ . ✓ ✓ ✓ - sparql ✓ ✓ ✓ ✓ ✓ - ocaml ✓ ✓ ✓ . ✓ - fusion ✓ ✓ ✓ ✓ . - go ✓ ✓ ✓ ✓ ✓ - perl ✓ . ✓ . . - java ✓ ✓ . ✓ ✓ - dot ✓ . . . ✓ - scheme ✓ . ✓ . ✓ - dockerfile ✓ . . . ✓ - python ✓ ✓ ✓ ✓ ✓ - hlsl ✓ ✓ ✓ ✓ ✓ - proto ✓ . ✓ . . 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