feat(markdown): add rumdl server and fixer (#5115)
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--lua-only) (push) Has been cancelled
CI / test_ale (--neovim-07-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled

* feat: put in the main linter files

* feat: add to registry

* docs: add rumdl to docs

* tests: vader tests

* edit: actually split the options into two

* style: make rumdl fixer test mimic markdownlint

* fix: stupidity overwhelming

* fix: actually let's look for pyproject too

copied from tombi

* i'm a buffoon fix wrong indentation

* alignment ci is made for people like me

* missed toc entry
This commit is contained in:
Evan Chen
2026-04-15 22:04:59 +09:00
committed by GitHub
parent 051d12c72d
commit c59c0d1a57
9 changed files with 150 additions and 0 deletions
+5
View File
@@ -767,6 +767,11 @@ let s:default_registry = {
\ 'suggested_filetypes': ['markdown'],
\ 'description': 'Fix markdown files with markdownlint.',
\ },
\ 'rumdl': {
\ 'function': 'ale#fixers#rumdl#Fix',
\ 'suggested_filetypes': ['markdown'],
\ 'description': 'Fix markdown files with rumdl.',
\ },
\}
" Reset the function registry to the default entries.
+18
View File
@@ -0,0 +1,18 @@
scriptencoding utf-8
" Author: Evan Chen <evan@evanchen.cc>
" Description: Fast Markdown linter and formatter written in Rust
call ale#Set('markdown_rumdl_executable', 'rumdl')
call ale#Set('markdown_rumdl_fmt_options', '--silent')
function! ale#fixers#rumdl#Fix(buffer) abort
let l:executable = ale#Var(a:buffer, 'markdown_rumdl_executable')
let l:options = ale#Var(a:buffer, 'markdown_rumdl_fmt_options')
return {
\ 'command': ale#Escape(l:executable) . ' fmt -'
\ . ale#Pad(l:options),
\}
endfunction