mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
add ale to the nvim setup section of the readme
This commit is contained in:
parent
549ce9a9cf
commit
7edd293e5c
1 changed files with 15 additions and 0 deletions
|
@ -212,6 +212,21 @@ let g:ycm_language_server =
|
|||
\ ]
|
||||
----
|
||||
|
||||
==== ALE
|
||||
|
||||
To add the LSP server to https://github.com/dense-analysis/ale[ale]:
|
||||
|
||||
[source,vim]
|
||||
----
|
||||
call ale#linter#Define('rust', {
|
||||
\ 'name': 'rust-analyzer',
|
||||
\ 'lsp': 'stdio',
|
||||
\ 'executable': 'rust-analyzer',
|
||||
\ 'command': '%e',
|
||||
\ 'project_root': '.',
|
||||
\})
|
||||
----
|
||||
|
||||
==== nvim-lsp
|
||||
|
||||
NeoVim 0.5 (not yet released) has built-in language server support.
|
||||
|
|
Loading…
Reference in a new issue