Document default linter selections again

This commit is contained in:
w0rp
2022-03-05 00:43:56 +00:00
parent 87ade74b4d
commit e5492e124d
3 changed files with 6 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ Before:
let g:ale_linters = {}
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
After:
@@ -103,7 +103,7 @@ Execute(The defaults for the text filetype should be correct):
AssertEqual [], GetLinterNames('text')
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