mirror of
https://github.com/dense-analysis/ale
synced 2024-12-17 20:05:31 +00:00
Close #4461 - Use rust-analyzer by default
Use rust-analyzer by default instead of rls, as rls has been deprecated.
This commit is contained in:
parent
64ddf457e1
commit
8ba7ae818c
@ -53,7 +53,7 @@ let s:default_ale_linters = {
|
|||||||
\ 'perl': ['perlcritic'],
|
\ 'perl': ['perlcritic'],
|
||||||
\ 'perl6': [],
|
\ 'perl6': [],
|
||||||
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright', 'ruff'],
|
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright', 'ruff'],
|
||||||
\ 'rust': ['cargo', 'rls'],
|
\ 'rust': ['analyzer', 'cargo'],
|
||||||
\ 'spec': [],
|
\ 'spec': [],
|
||||||
\ 'text': [],
|
\ 'text': [],
|
||||||
\ 'vader': ['vimls'],
|
\ 'vader': ['vimls'],
|
||||||
|
@ -33,11 +33,12 @@ Integration Information
|
|||||||
5. rustfmt -- If you have `rustfmt` installed, you can use it as a fixer to
|
5. rustfmt -- If you have `rustfmt` installed, you can use it as a fixer to
|
||||||
consistently reformat your Rust code.
|
consistently reformat your Rust code.
|
||||||
|
|
||||||
Only cargo and rls are enabled by default. To switch to using rustc instead
|
Only cargo and rust-analyze are enabled by default. To switch to using rustc
|
||||||
of cargo, configure |g:ale_linters| appropriately: >
|
instead of cargo, configure |b:ale_linters| in your ftplugin file
|
||||||
|
appropriately: >
|
||||||
|
|
||||||
" See the help text for the option for more information.
|
" See the help text for the option for more information.
|
||||||
let g:ale_linters = {'rust': ['rustc', 'rls']}
|
let b:ale_linters = ['analyzer', 'rustc']
|
||||||
<
|
<
|
||||||
|
|
||||||
Also note that rustc 1.18. or later is needed.
|
Also note that rustc 1.18. or later is needed.
|
||||||
|
@ -1653,7 +1653,7 @@ g:ale_linters *g:ale_linters*
|
|||||||
\ 'perl': ['perlcritic'],
|
\ 'perl': ['perlcritic'],
|
||||||
\ 'perl6': [],
|
\ 'perl6': [],
|
||||||
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright', 'ruff'],
|
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright', 'ruff'],
|
||||||
\ 'rust': ['cargo', 'rls'],
|
\ 'rust': ['analyzer', 'cargo'],
|
||||||
\ 'spec': [],
|
\ 'spec': [],
|
||||||
\ 'text': [],
|
\ 'text': [],
|
||||||
\ 'vader': ['vimls'],
|
\ 'vader': ['vimls'],
|
||||||
|
@ -90,7 +90,7 @@ Execute(The defaults for the python filetype should be correct):
|
|||||||
AssertEqual [], GetLinterNames('python')
|
AssertEqual [], GetLinterNames('python')
|
||||||
|
|
||||||
Execute(The defaults for the rust filetype should be correct):
|
Execute(The defaults for the rust filetype should be correct):
|
||||||
AssertEqual ['cargo', 'rls'], GetLinterNames('rust')
|
AssertEqual ['analyzer', 'cargo'], GetLinterNames('rust')
|
||||||
|
|
||||||
let g:ale_linters_explicit = 1
|
let g:ale_linters_explicit = 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user