MeanderingProgrammer / render-markdown.nvim

Plugin to improve viewing Markdown files in Neovim
MIT License
1.33k stars 32 forks source link

bug: Not an editor command #147

Closed L34Z closed 2 weeks ago

L34Z commented 2 weeks ago

Neovim version (nvim -v)

NVIM v0.11.0-dev (LuaJIT 2.1.0-beta3)

Operating system

WSL2 [Ubuntu 22.04.3 LTS on Windows 10 x86_64]

Terminal emulator / GUI

Windows Terminal

Describe the bug

I can't seem to enable the plugin in NvChad.

Screenshots

image image

Expected behavior

Enabling of the plugin.

Healthcheck output

- ERROR No healthcheck found for "render-markdown" plugin.

Plugin configuration


       │ File: /home/z/.config/nvim/lua/plugins/markdown.lua

   1   │ return {
   2   │
   3   │   {
   4   │     'MeanderingProgrammer/render-markdown.nvim',
   5   │     opts = {},
   6   │     dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' }, -- if you use the mini.nvim suite
   7   │   }
   8   │
   9   │ }

Plugin error log

N/A

Confirmations

Additional information

I was able to call the command without issue in LazyVim but the rendering wasn't working properly hence switching to NvChad. I'm still fairly new to nvim so any help would be appreciated, I'm sure this is probably user error.

MeanderingProgrammer commented 2 weeks ago

There was a previous comment that had a random download link, I in no way endorse it and without context it's just sketchy.

As far as the plugin not working, I'm honestly not sure why, distros have specific ways to add dependencies and I'm not sure what NvChad's is. The lack of checkhealth indicates the plugin is not being downloaded as opposed to some internal error, I assume this is due to the path but not entirely sure.

I'm curious what you mean by rendering not working properly in LazyVim. I wouldn't expect switching distributions to alter the rendering behavior.

MeanderingProgrammer commented 2 weeks ago

Did you use their starter: https://github.com/NvChad/starter, or how did you setup your config in general?

L34Z commented 2 weeks ago

There was a previous comment that had a random download link, I in no way endorse it and without context it's just sketchy.

Yeah I saw that, and yeah it was, lol.

Did you use their starter: https://github.com/NvChad/starter, or how did you setup your config in general?

I did use their starter, yes.

I'm curious what you mean by rendering not working properly in LazyVim. I wouldn't expect switching distributions to alter the rendering behavior.

Unfortunately I didn't take any screenshots of LazyVim's issue, iirc the checkmark boxes just didn't show up and the headings didn't look like the examples in the repo.

MeanderingProgrammer commented 2 weeks ago

I'm not sure if that configuration is going to load the entire plugins directory. It should but I'm also not 100% sure. Can you try adding it inside of the plugins/init.lua file: https://github.com/NvChad/starter/blob/main/lua/plugins/init.lua.

Checkmarks being different is strange. But the headings looking different is expected due to LazyVims default config: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/plugins/extras/lang/markdown.lua#L105. The icons can be re-enabled, it's just not the default behavior.

MeanderingProgrammer commented 2 weeks ago

Unsure if this is still a problem, feel free to re-open if it is!