Closed dimbleby closed 2 years ago
Hmm. looks like nvim_win_set_cursor
no longer works with [1, -1]
, the docs say -1 means the last index, or maybe it never worked? I'll try with an older version of neovim.
Nope, it doesn't work on 5.0, so we need to pass the actual position.
Describe the bug
Error when trying to navigate markdown file using text objects
To Reproduce
markdown file like this
configuration like this:
Hit
[]
, error out:Expected behavior
Cursor is moved, no error.
Output of
:checkhealth nvim_treesitter
nvim_treesitter: health#nvim_treesitter#check ======================================================================== ## Installation - OK: `tree-sitter` found 0.20.1 (062421dece3315bd6f228ad6d468cba083d0a2d5) (parser generator, only needed for :TSInstallFromGrammar) - OK: `node` found v15.14.0 (only needed for :TSInstallFromGrammar) - OK: `git` executable found. - OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 - OK: Neovim was compiled with tree-sitter runtime ABI version 13 (required >=13). Parsers must be compatible with runtime ABI. ## Parser/Features H L F I J - json ✓ ✓ ✓ ✓ .- - vim ✓ ✓ . . ✓- - haskell ✓ . . . ✓- - supercollider ✓ ✓ ✓ ✓ ✓- - scala ✓ . ✓ . ✓- - go ✓ ✓ ✓ ✓ ✓- - prisma ✓ . . . .- - tsx ✓ ✓ ✓ ✓ ✓- - typescript ✓ ✓ ✓ ✓ ✓- - r ✓ ✓ . . .- - c_sharp ✓ ✓ ✓ . ✓- - swift . . . . .- - cmake ✓ . ✓ . .- - ocamllex ✓ . . . ✓- - zig ✓ . ✓ ✓ ✓- - ocaml_interface✓ ✓ ✓ . ✓- - ocaml ✓ ✓ ✓ . ✓- - bibtex ✓ . ✓ ✓ .- - heex ✓ . ✓ ✓ ✓- - make ✓ . . . ✓- - surface ✓ . ✓ ✓ ✓- - elixir ✓ ✓ ✓ ✓ ✓- - erlang . . . . .- - svelte ✓ . ✓ ✓ ✓- - scss ✓ . . ✓ .- - dockerfile ✓ . . . ✓- - devicetree ✓ ✓ ✓ ✓ ✓- - glsl ✓ ✓ ✓ ✓ ✓- - julia ✓ ✓ ✓ ✓ ✓- - d ✓ . ✓ ✓ ✓- - cuda ✓ ✓ ✓ ✓ ✓- - kotlin ✓ . . . ✓- - cpp ✓ ✓ ✓ ✓ ✓- - commonlisp ✓ ✓ ✓ . .- - php ✓ ✓ ✓ ✓ ✓- - clojure ✓ ✓ ✓ . ✓- - sparql ✓ ✓ ✓ ✓ ✓- - fish ✓ ✓ ✓ ✓ ✓- - bash ✓ ✓ ✓ . ✓- - jsdoc ✓ . . . .- - javascript ✓ ✓ ✓ ✓ ✓- - perl ✓ . . . .- - comment ✓ . . . .- - ruby ✓ ✓ ✓ ✓ ✓- - graphql ✓ . . ✓ ✓- - verilog ✓ ✓ ✓ . ✓- - ql ✓ ✓ . ✓ ✓- - teal ✓ ✓ ✓ ✓ ✓- - python ✓ ✓ ✓ ✓ ✓- - fennel ✓ ✓ . . ✓- - rst ✓ ✓ . . ✓- - regex ✓ . . . .- - dart ✓ ✓ . ✓ ✓- - fusion ✓ ✓ . . .- - nix ✓ ✓ ✓ . ✓- - rust ✓ ✓ ✓ ✓ ✓- - yang ✓ . ✓ . .- - http ✓ . . . ✓- - llvm ✓ . . . .- - yaml ✓ ✓ ✓ ✓ ✓- - hjson ✓ ✓ ✓ ✓ ✓- - elm ✓ . . . ✓- - pioasm ✓ . . . ✓- - json5 ✓ . . . ✓- - fortran ✓ . ✓ ✓ .- - jsonc ✓ ✓ ✓ ✓ ✓- - latex ✓ . ✓ . ✓- - vue ✓ . ✓ ✓ ✓- - beancount ✓ . ✓ . .- - pug ✓ . . . ✓- - turtle ✓ ✓ ✓ ✓ ✓- - godot_resource ✓ ✓ ✓ . .- - gdscript ✓ ✓ . . ✓- - query ✓ ✓ ✓ ✓ ✓- - ledger ✓ . ✓ ✓ ✓- - java ✓ ✓ . ✓ ✓- - glimmer ✓ . . . .- - lua ✓ ✓ ✓ ✓ ✓- - c ✓ ✓ ✓ ✓ ✓- - toml ✓ ✓ ✓ ✓ ✓- - html ✓ ✓ ✓ ✓ ✓- - dot ✓ . . . ✓- - css ✓ . ✓ ✓ ✓- - tlaplus ✓ . ✓ . ✓- - hcl ✓ . ✓ ✓ ✓- - markdown ✓ . . . ✓- - gomod ✓ . . . ✓- - gowork ✓ . . . ✓- 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