@@ -35,6 +35,7 @@ extension at
3535 * [ Protocol extensions] ( #Protocol-extensions )
3636 * [ How to use the VScode extension] ( #How-to-use-the-VScode-extension )
3737 * [ Integration with Coc.NVim] ( #integration-with-cocnvim )
38+ * [ Integration with vim-lsp] ( #integration-with-vim-lsp )
3839 * [ Integration with LanguageClient-Neovim] ( #Integration-with-LanguageClient-Neovim )
3940 * [ Integration with Neovim's built-in LSP client] ( #integration-with-neovims-built-in-lsp-client )
4041 * [ Integration with emacs lsp-mode] ( #Integration-with-emacs-lsp-mode )
@@ -46,7 +47,7 @@ extension at
4647## Install
4748
4849You 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
5051```
5152make
5253```
@@ -250,6 +251,27 @@ configure the Ada Language Server with `:CocConfig`:
250251}
251252```
252253
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+
253275## Integration with LanguageClient-Neovim
254276
255277If you want to integrate the Ada Language Server into Neovim, you can use the
0 commit comments