Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/davidmh/mdx.nvim

Good enough syntax highlight for MDX in Neovim using Treesitter
https://github.com/davidmh/mdx.nvim

mdx neovim syntax-highlighting tree-sitter

Last synced: about 3 hours ago
JSON representation

Good enough syntax highlight for MDX in Neovim using Treesitter

Awesome Lists containing this project

README

        

# 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

#### With [lazy.nvim]

```lua
{
"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"`

[the post]: https://phelipetls.github.io/posts/mdx-syntax-highlight-treesitter-nvim/
[Phelipe Teles]: https://github.com/phelipetls
[lazy.nvim]: https://github.com/folke/lazy.nvim
[NvChad]: https://github.com/NvChad/NvChad
[docs]: https://nvchad.com/docs/config/plugins