@@ -35,6 +35,7 @@ extension at
35
35
* [ Protocol extensions] ( #Protocol-extensions )
36
36
* [ How to use the VScode extension] ( #How-to-use-the-VScode-extension )
37
37
* [ Integration with Coc.NVim] ( #integration-with-cocnvim )
38
+ * [ Integration with vim-lsp] ( #integration-with-vim-lsp )
38
39
* [ Integration with LanguageClient-Neovim] ( #Integration-with-LanguageClient-Neovim )
39
40
* [ Integration with Neovim's built-in LSP client] ( #integration-with-neovims-built-in-lsp-client )
40
41
* [ Integration with emacs lsp-mode] ( #Integration-with-emacs-lsp-mode )
@@ -46,7 +47,7 @@ extension at
46
47
## Install
47
48
48
49
You can build language server from sources.
49
- To build is from sources install dependencies and run
50
+ To build it from sources install dependencies and run
50
51
```
51
52
make
52
53
```
@@ -250,6 +251,27 @@ configure the Ada Language Server with `:CocConfig`:
250
251
}
251
252
```
252
253
254
+ ## Integration with vim-lsp
255
+
256
+ If you want to integrate the Ada Language Server into vim, you can use the
257
+ [ vim-lsp] ( https://github.com/prabirshrestha/vim-lsp ) .
258
+
259
+ You'll have to [ install] ( #install ) the Ada Language Server manually somewhere on your
260
+ computer, and then you can add the following line to your ` .vimrc ` file:
261
+
262
+ ``` viml
263
+ if executable('ada_language_server')
264
+ au User lsp_setup call lsp#register_server({
265
+ \ 'name': 'ada_language_server',
266
+ \ 'cmd': ['ada_language_server'],
267
+ \ 'allowlist': ['ada'],
268
+ \ 'workspace_config': {'ada': {
269
+ \ 'projectFile': "project.gpr",
270
+ \ 'scenarioVariables': {"ARCH": "x86_64-pc-linux-gnu"}}},
271
+ \ })
272
+ endif
273
+ ```
274
+
253
275
## Integration with LanguageClient-Neovim
254
276
255
277
If you want to integrate the Ada Language Server into Neovim, you can use the
0 commit comments