Skip to content

bug: using J to collapse lines triggers error #649

@ishaan-kapoor

Description

@ishaan-kapoor

Neovim version (nvim -v)

0.11.5

Neovim distribution

N/A

Operating system

RHEL

Terminal emulator / GUI

Windows Terminal

Describe the bug

 | Error x2: Error executing vim.schedule lua callback: ...wrapped-0.11.5/share/nvim/runtime/lua/vim/treesitter.lua:195: Index out of bounds
stack traceback:
	[C]: in function 'nvim_buf_get_text'
	...wrapped-0.11.5/share/nvim/runtime/lua/vim/treesitter.lua:195: in function 'get_node_text'
	...zy/render-markdown.nvim/lua/render-markdown/lib/node.lua:34: in function 'new'
	...ender-markdown.nvim/lua/render-markdown/request/view.lua:74: in function 'callback'
	...ender-markdown.nvim/lua/render-markdown/request/view.lua:88: in function 'query'
	...ender-markdown.nvim/lua/render-markdown/request/view.lua:71: in function 'nodes'
	...r-markdown.nvim/lua/render-markdown/handler/markdown.lua:55: in function 'parse'
	...nder-markdown.nvim/lua/render-markdown/core/handlers.lua:94: in function 'tree'
	...nder-markdown.nvim/lua/render-markdown/core/handlers.lua:51: in function 'run'
	...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:159: in function 'callback'
	...ender-markdown.nvim/lua/render-markdown/request/view.lua:64: in function 'parse'
	...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:156: in function 'parse'
	...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:129: in function 'render'
	...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:112: in function 'run'
	...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:78: in function <...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:77>

Expected behavior

No error

Healthcheck output

==============================================================================
render-markdown:                                                            ✅

render-markdown.nvim [versions] ~
- ✅ OK neovim >= 0.11
- ✅ OK tree-sitter ABI: 15
- ✅ OK plugin: 8.12.12

render-markdown.nvim [configuration] ~
- ✅ OK valid

render-markdown.nvim [tree-sitter markdown] ~
- ✅ OK parser: installed
- ✅ OK ABI: 14
- ✅ OK highlights: ~/.local/share/nvim/lazy/nvim-treesitter/queries/markdown/highlights.scm
- ✅ OK highlighter: enabled

render-markdown.nvim [tree-sitter markdown_inline] ~
- ✅ OK parser: installed
- ✅ OK ABI: 14
- ✅ OK highlights: ~/.local/share/nvim/lazy/nvim-treesitter/queries/markdown_inline/highlights.scm

render-markdown.nvim [tree-sitter html] ~
- ✅ OK parser: installed
- ✅ OK ABI: 14

render-markdown.nvim [tree-sitter yaml] ~
- ✅ OK parser: installed
- ✅ OK ABI: 14

render-markdown.nvim [icons] ~
- ✅ OK using: nvim-web-devicons

render-markdown.nvim [conflicts] ~
- ✅ OK headlines: not installed
- ✅ OK markview: not installed
- ✅ OK obsidian: not installed

Plugin configuration

{
  latex = {
    enabled = false
  }
}

Plugin error log

N/A

Confirmations

  • I have updated this plugin to the latest version using my plugin manager
  • I have updated all treesitter parsers (:TSUpdate)
  • I have provided the text contained in all screenshots as raw text in this issue. This means if there is a screenshot below it is the copy pasted contents of the file in the screenshot. I understand that my issue will be closed if I have not.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions