Skip to content

Good enough syntax highlight for MDX in Neovim using Treesitter

Notifications You must be signed in to change notification settings

davidmh/mdx.nvim

Repository files navigation

mdx.nvim

Good enough syntax highlight for MDX in Neovim using Treesitter.

Highlight support for mdx based in the post written by Phelipe Teles.

Installation

{
  "davidmh/mdx.nvim",
  config = true,
  dependencies = {"nvim-treesitter/nvim-treesitter"}
}

With NvChad

From the NvChad docs:

All NvChad default plugins will have lazy = true set. Therefore, if you want a plugin to be enabled on startup, change it to lazy = false.

Since this plugin only defines a filetype it's safe to let it run on startup. So setting lazy = false is enough.

But if you absolutely need to loaded only when needed, you can use event = "BufEnter *.mdx"

About

Good enough syntax highlight for MDX in Neovim using Treesitter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published