markdownlint for Vim/Neovim, works as coc.nvim extension.
- Style lint
- Autofix
<Plug>(coc-codeaction)
on current diagnostic, you will find available codeAction, choose by number to fix.
:CocInstall coc-markdownlint
markdownlint.onOpen
: lint on open a file, defaulttrue
markdownlint.onChange
: lint on changing a file, defaulttrue
markdownlint.onSave
: lint on saving a file, defaulttrue
markdownlint.config
: configurations rules used by markdownlint, default{}
markdownlint.fixAll
: fix all errors in current file found by markdownlint
Provides codeAction for current file or line to disable markdownlint, triggered
by <Plug>(coc-codeaction)
and <Plug>(coc-codeaction-line)
<!-- markdownlint-disable-file -->
<!-- markdownlint-disable-next-line -->
You can configures the markdownlint rules to use, for example:
{
"default": true,
"line_length": false
}
coc-markdownlint
can read configurations from:
- Global configuration file that rc can find, for example
$HOME/.markdownlintrc
. Checkoutrc
for more examples. markdownlint.config
section incoc-settings.json
.markdownlint.{json, yaml}
in local workspace root
MIT
This extension is created with create-coc-extension