@@ -136,7 +136,7 @@ The `ada_language_server` relies on [Libadalang](https://github.com/AdaCore/liba
136
136
Most of this computation is done while indexing which will create an internal cache.
137
137
The expected memory size of this cache is around 300Mb per 100k lines of Ada code.
138
138
Furthermore, 450Mb are necessary for the runtime.
139
- Please note that some Ada structures like generics and tagged types might
139
+ Please note that some Ada structures like generics and tagged types might
140
140
increase the memory usage. This is also the case when using aggregate projects.
141
141
These measures were taken using both Resident Set Size and [ Valgrind massif] ( https://valgrind.org/docs/manual/ms-manual.html ) on Ubuntu 22.04LTS.
142
142
@@ -496,20 +496,20 @@ Ada Language Server. In order to use it with minimal effort, follow these steps:
496
496
* Install the ada language server and make sure it's in your $PATH.
497
497
* Use your favorite Neovim plugin manager to add the default set of [ LSP
498
498
configuration files] ( https://github.com/neovim/nvim-lspconfig ) to Neovim.
499
- * Enable the Ada Language Server by adding ` :lua require('lspconfig').als .setup{}` to
500
- your init.vim .
499
+ * Add ` require('lspconfig').ada_ls .setup{} ` to your init.lua in order to enable
500
+ the Ada Language Server .
501
501
502
502
If you would rather not have the ada language server in your path, you can give
503
503
the lsp client an absolute path to the ALS executable:
504
504
505
505
``` lua
506
- require (' lspconfig' ).als .setup { cmd = " /path/to/als/executable" }
506
+ require (' lspconfig' ).ada_ls .setup { cmd = " /path/to/als/executable" }
507
507
```
508
508
509
509
Configuring the language server's settings can be achieved like this:
510
510
511
511
``` lua
512
- require (' nvim_lsp ' ).als .setup {
512
+ require (' lspconfig ' ).ada_ls .setup {
513
513
settings = {
514
514
ada = {
515
515
projectFile = " project.gpr" ;
0 commit comments