-
Notifications
You must be signed in to change notification settings - Fork 39
Home
An experimental markdown
previewer for Neovim.
Note
If you have screenshots of the plugin that you want to be shown in the repo then you can submit them in the special pinned issue.
- Getting started
- Plugin setup
- Block quotes
- Check boxes
- Code blocks
- Headings
- Horizontal rules
- Inline codes
- Links
- List Items
- Tables
The wiki is going through a revision so many things may be outdated
-
Concealments
not working properly on scrollThis is not caused by the plugin and can be fixed by simply disabling
spell
for markdown files.
First off, RTFM(basically read the README). You should check the requirements
section and see if you have everything.
You Neovim version should be at least 0.10
. You also need nvim-treesitter
(for easy installation of parsers) and have the parsers installed in your $RUNTIMEPATH
.
For the parsers, you need markdown
and markdown_inline
parsers for the plugin to work.
Important
If you are using a distro
(e.g. LazyVim) then you should first check what options they set(from their wiki
). Some of them can negatively impact the plugin.
Warning
DO NOT GO OVERBOARD WITH LAZY LOADING.
It's meant to prevent unused things from loading when Neovim starts(which this plugin does NOT). So, lazy loading wouldn't make much of a difference. However, it can sometimes cause the plugin to not load.
By default, the plugin looks into the background color of Normal
or the foreground color of Cursor
as a fallback. This value is used to blend the foreground color of specific hughlight groups. The resulting color is used as the background color.
Some colorschemes don't set the values for these colors(sometimes as a mistake or to achieve transparency). So, the plugin can't use them. In that case no color is returned. This leads to some highlight groups not having any background colors.
Note
You need a Tree-sitter
supported colorscheme to get the correct colors.
For creating the highlight groups markview
will use some of the default highlight groups for markdown. These are set by Tree-sitter
and require a supported colorscheme to work.
If the highlight groups are not found then the plugin will use the default values(taken from catppuccin-mocha's
color palette).
Wow, so empty 😐