MeanderingProgrammer / render-markdown.nvim

Plugin to improve viewing Markdown files in Neovim
MIT License
1.73k stars 38 forks source link

bug: Unable to run :RenderMarkdown toggle #105

Closed UnsolvedCypher closed 3 months ago

UnsolvedCypher commented 3 months ago

Neovim version (nvim -v)

0.9.5

Operating system

MacOS

Terminal emulator / GUI

iTerm2

Describe the bug

When I attempt to run :RenderMarkdown toggle I get a lua stacktrace:

Error executing Lua callback: ...share/nvim/lazy/markdown.nvim/plugin/render-markdown.lua:15: loop or previous error loading module 'render-markdo
wn.api'
stack traceback:
        [C]: in function 'require'
        ...share/nvim/lazy/markdown.nvim/plugin/render-markdown.lua:15: in function <...share/nvim/lazy/markdown.nvim/plugin/render-markdown.lua:1
0>

Expected behavior

I expect not to see a stacktrace.

Healthcheck output


==============================================================================
render-markdown: require("render-markdown.health").check()

markdown.nvim [neovim version] ~
- WARNING Version < 0.10 some features will not work

markdown.nvim [configuration] ~
- OK valid

markdown.nvim [nvim-treesitter] ~
- OK installed
- OK markdown: parser installed
- OK markdown: highlight enabled
- OK markdown_inline: parser installed
- OK markdown_inline: highlight enabled
- OK latex: parser installed

markdown.nvim [executables] ~
- WARNING latex2text: not installed
  - ADVICE:
    - Disable LaTeX support to avoid this warning by setting { latex = { enabled = false } }

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

Plugin configuration

  {
    'MeanderingProgrammer/markdown.nvim',
    main = "render-markdown",
    opts = {},
    dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' },       -- if you use the mini.nvim suite
    -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.icons' }, -- if you use standalone mini plugins
    -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons
  },

Confirmations

Additional information

This is a fresh install, without anything fancy.

doanhtu07 commented 3 months ago

+1, it seems like it just happens after a few newest commits

MeanderingProgrammer commented 3 months ago

My bad, left a bad reference in the code, should be fixed now!

https://github.com/MeanderingProgrammer/markdown.nvim/commit/15d8e02663aa58f215ecadbcebbd34149b06a7bc

Thanks for reporting the issue!