mirror of https://github.com/dense-analysis/ale
Close #4201 - Run vimls from Vader by default
This commit is contained in:
parent
e3e940a7fe
commit
044a6c956b
|
@ -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'],
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue