Skip to content

Commit 97da881

Browse files
author
mergerepo
committed
Merge remote branch 'origin/master' into edge
(no-precommit-check no-tn-check)
2 parents 33fa8d0 + 8f36742 commit 97da881

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

4849
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
5051
```
5152
make
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

255277
If you want to integrate the Ada Language Server into Neovim, you can use the

0 commit comments

Comments
 (0)