mirror of
https://github.com/dense-analysis/ale.git
synced 2026-07-31 04:12:53 +08:00
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
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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user