add ale to the nvim setup section of the readme

This commit is contained in:
Simon Cruanes 2020-04-28 21:01:10 -04:00 committed by GitHub
parent 549ce9a9cf
commit 7edd293e5c
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 ==== nvim-lsp
NeoVim 0.5 (not yet released) has built-in language server support. NeoVim 0.5 (not yet released) has built-in language server support.