4199: add ale to the nvim setup section of the readme r=matklad a=c-cube



Co-authored-by: Simon Cruanes <simon.cruanes.2007@m4x.org>
This commit is contained in:
bors[bot] 2020-04-29 06:32:58 +00:00 committed by GitHub
commit 6046804cec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.