Document default linter selections again

This commit is contained in:
w0rp 2022-03-05 00:43:56 +00:00
parent 87ade74b4d
commit e5492e124d
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
3 changed files with 6 additions and 4 deletions

View File

@ -54,7 +54,7 @@ let s:default_ale_linters = {
\ 'rust': ['cargo', 'rls'], \ 'rust': ['cargo', 'rls'],
\ 'spec': [], \ 'spec': [],
\ 'text': [], \ 'text': [],
\ 'vue': ['vls', 'eslint'], \ 'vue': ['eslint', 'vls'],
\ 'zsh': ['shell'], \ 'zsh': ['shell'],
\ 'v': ['v'], \ 'v': ['v'],
\} \}

View File

@ -1602,12 +1602,14 @@ g:ale_linters *g:ale_linters*
\ 'hack': ['hack'], \ 'hack': ['hack'],
\ 'help': [], \ 'help': [],
\ 'inko': ['inko'], \ 'inko': ['inko'],
\ 'json': ['jsonlint', 'spectral'],
\ 'json5': [],
\ 'jsonc': [],
\ 'perl': ['perlcritic'], \ 'perl': ['perlcritic'],
\ 'perl6': [], \ 'perl6': [],
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright'], \ 'python': ['flake8', 'mypy', 'pylint', 'pyright'],
\ 'rust': ['cargo', 'rls'], \ 'rust': ['cargo', 'rls'],
\ 'spec': [], \ 'spec': [],
\ 'svelte': ['eslint', 'svelteserver'],
\ 'text': [], \ 'text': [],
\ 'vue': ['eslint', 'vls'], \ 'vue': ['eslint', 'vls'],
\ 'zsh': ['shell'], \ 'zsh': ['shell'],

View File

@ -6,7 +6,7 @@ Before:
let g:ale_linters = {} let g:ale_linters = {}
function! GetLinterNames(filetype) abort function! GetLinterNames(filetype) abort
return map(ale#linter#Get(a:filetype), 'v:val.name') return sort(map(ale#linter#Get(a:filetype), 'v:val.name'))
endfunction endfunction
After: After:
@ -103,7 +103,7 @@ Execute(The defaults for the text filetype should be correct):
AssertEqual [], GetLinterNames('text') AssertEqual [], GetLinterNames('text')
Execute(The defaults for the vue filetype should be correct): Execute(The defaults for the vue filetype should be correct):
AssertEqual ['vls', 'eslint'], GetLinterNames('vue') AssertEqual ['eslint', 'vls'], GetLinterNames('vue')
let g:ale_linters_explicit = 1 let g:ale_linters_explicit = 1