Skip to content

bug: attempt to call method 'disable_pattern' (a nil value) #388

@name-jerry

Description

@name-jerry

Neovim version (nvim -v)

NVIM v0.11.0-dev-1265+g6cdcac4492

Neovim distribution

neovim

Operating system

wsl

Terminal emulator / GUI

WezTerm

Describe the bug

一旦进入.md文件就会报错:
E5108: Error executing lua: vim/_editor.lua:0: nvim_exec2()..BufReadPost 自动命令 "": Vim(append):Error executing lua callback: /home/zr/nvim-linux64/share/nvim/runtime/file
type.lua:36: nvim_exec2()..BufReadPost 自动命令 "
"..FileType 自动命令 "markdown"..FileType 自动命令 "*": Vim(append):Error executing lua callback: ...zy/render-markdown.nvim
/lua/render-markdown/integ/ts.lua:77: attempt to call method 'disable_pattern' (a nil value)

Expected behavior

不报错

Healthcheck output

render-markdown.nvim [version] ~
- OK plugin 8.2.2
- OK neovim >= 0.11

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

render-markdown.nvim [treesitter] ~
- OK markdown: parser installed
- OK markdown_inline: parser installed
- WARNING latex: parser not installed
  - ADVICE:
    - Disable latex support to avoid this warning
    - require('render-markdown').setup({ latex = { enabled = false } })
- OK html: parser installed
- OK markdown: highlight enabled

render-markdown.nvim [icons] ~
- OK using: mini.icons

render-markdown.nvim [executables] ~
- WARNING latex2text: not installed
  - ADVICE:
    - Disable latex support to avoid this warning
    - require('render-markdown').setup({ latex = { enabled = false } })

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

Plugin configuration

{
  file_types = {
    [2] = "Avante"
  }
}

Plugin error log

N/A.

Confirmations

  • I have updated this plugin to the latest version using my plugin manager
  • 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

    duplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions