Close #4201 - Run vimls from Vader by default

This commit is contained in:
w0rp 2022-05-13 18:00:19 +01:00
parent e3e940a7fe
commit 044a6c956b
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
3 changed files with 12 additions and 1 deletions

View File

@ -19,6 +19,7 @@ let s:default_ale_linter_aliases = {
\ 'rmd': 'r',
\ 'systemverilog': 'verilog',
\ 'typescriptreact': ['typescript', 'tsx'],
\ 'vader': ['vim', 'vader'],
\ 'verilog_systemverilog': ['verilog_systemverilog', 'verilog'],
\ 'vimwiki': 'markdown',
\ 'vue': ['vue', 'javascript'],
@ -54,6 +55,7 @@ let s:default_ale_linters = {
\ 'rust': ['cargo', 'rls'],
\ 'spec': [],
\ 'text': [],
\ 'vader': ['vimls'],
\ 'vue': ['eslint', 'vls'],
\ 'zsh': ['shell'],
\ 'v': ['v'],

View File

@ -1466,9 +1466,9 @@ g:ale_linter_aliases *g:ale_linter_aliases*
\ 'ps1': 'powershell',
\ 'rmarkdown': 'r',
\ 'rmd': 'r',
\ 'svelte': ['svelte', 'javascript'],
\ 'systemverilog': 'verilog',
\ 'typescriptreact': ['typescript', 'tsx'],
\ 'vader': ['vim', 'vader'],
\ 'verilog_systemverilog': ['verilog_systemverilog', 'verilog'],
\ 'vimwiki': 'markdown',
\ 'vue': ['vue', 'javascript'],
@ -1622,9 +1622,11 @@ g:ale_linters *g:ale_linters*
\ 'rust': ['cargo', 'rls'],
\ 'spec': [],
\ 'text': [],
\ 'vader': ['vimls'],
\ 'vue': ['eslint', 'vls'],
\ 'zsh': ['shell'],
\ 'v': ['v'],
\ 'yaml': ['spectral', 'yaml-language-server', 'yamllint'],
\}
<
This option can be used to enable only a particular set of linters for a

View File

@ -125,6 +125,13 @@ Execute(The defaults for the verilog filetype should be correct):
AssertEqual [], GetLinterNames('verilog')
Execute(The defaults for the vader filetype should be correct):
AssertEqual ['vimls'], GetLinterNames('vader')
let g:ale_linters_explicit = 1
AssertEqual [], GetLinterNames('vader')
Execute(Default aliases for React should be defined):
AssertEqual ['javascript', 'jsx'], ale#linter#ResolveFiletype('javascriptreact')
AssertEqual ['typescript', 'tsx'], ale#linter#ResolveFiletype('typescriptreact')