Skip to content

help: Render-markdown does not start when opening a markdown file directly #516

@armfem

Description

@armfem

Neovim version (nvim -v)

0.11.4

Neovim distribution

N/A

Description

When opening a file as nvim file.md the Lazy configuration has it as not loaded. Nevertheless, if i open neovim as nvim and then :tabnew file.md it render kind of okey (code highlight is not fine, but sometimes is but most of the times it isnt).

When render-markdown is on, :checkhealth render-markdown gives the following output


==============================================================================
render-markdown:                                                          1 ❌

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

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

render-markdown.nvim [tree-sitter markdown] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15
- ✅ OK highlights: ~/.local/share/nvim/lazy/nvim-treesitter/queries/markdown/highlights.scm
- ❌ ERROR highlighter: not enabled
  - ADVICE:
    - call vim.treesitter.start on markdown buffers

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 [executables] ~

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

My render markdown configuration is

return {
	"MeanderingProgrammer/render-markdown.nvim",
	enabled = true,
	dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
	ft = "markdown",

	---@module 'render-markdown'
	---@type render.md.UserConfig
	opts = {
		render_modes = { "n", "c", "t" },
		completions = { blink = { enabled = true } },
		latex = { enabled = false },
		code = {
			border = "thick",
		},
	},
}

I try making it to work okey but I cannot find the error or now enough neovim/plugin/lua to start debugging properly.
If there are any ideas or something I am missing, tried searching documentation and old issues but could not find anything.

Cheers,
Armando

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions