Skip to content

Commit 6046804

Browse files
bors[bot]c-cube
andauthored
Merge #4199
4199: add ale to the nvim setup section of the readme r=matklad a=c-cube Co-authored-by: Simon Cruanes <[email protected]>
2 parents 549ce9a + 7edd293 commit 6046804

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/user/readme.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,21 @@ let g:ycm_language_server =
212212
\ ]
213213
----
214214

215+
==== ALE
216+
217+
To add the LSP server to https://github.com/dense-analysis/ale[ale]:
218+
219+
[source,vim]
220+
----
221+
call ale#linter#Define('rust', {
222+
\ 'name': 'rust-analyzer',
223+
\ 'lsp': 'stdio',
224+
\ 'executable': 'rust-analyzer',
225+
\ 'command': '%e',
226+
\ 'project_root': '.',
227+
\})
228+
----
229+
215230
==== nvim-lsp
216231

217232
NeoVim 0.5 (not yet released) has built-in language server support.

0 commit comments

Comments
 (0)