Skip to content

Commit 7edd293

Browse files
authored
add ale to the nvim setup section of the readme
1 parent 549ce9a commit 7edd293

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)