Skip to content

Commit dddc57c

Browse files
committed
Merge branch 'github.com/neovim/nvim-lspconfig#3394' into 'master'
README.md: update instructions for built-in Neovim LSP See merge request eng/ide/ada_language_server!1763
2 parents ecae738 + fa8d2fc commit dddc57c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ The `ada_language_server` relies on [Libadalang](https://github.com/AdaCore/liba
136136
Most of this computation is done while indexing which will create an internal cache.
137137
The expected memory size of this cache is around 300Mb per 100k lines of Ada code.
138138
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
140140
increase the memory usage. This is also the case when using aggregate projects.
141141
These measures were taken using both Resident Set Size and [Valgrind massif](https://valgrind.org/docs/manual/ms-manual.html) on Ubuntu 22.04LTS.
142142

@@ -496,20 +496,20 @@ Ada Language Server. In order to use it with minimal effort, follow these steps:
496496
* Install the ada language server and make sure it's in your $PATH.
497497
* Use your favorite Neovim plugin manager to add the default set of [LSP
498498
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.
501501

502502
If you would rather not have the ada language server in your path, you can give
503503
the lsp client an absolute path to the ALS executable:
504504

505505
```lua
506-
require('lspconfig').als.setup{ cmd = "/path/to/als/executable" }
506+
require('lspconfig').ada_ls.setup{ cmd = "/path/to/als/executable" }
507507
```
508508

509509
Configuring the language server's settings can be achieved like this:
510510

511511
```lua
512-
require('nvim_lsp').als.setup{
512+
require('lspconfig').ada_ls.setup{
513513
settings = {
514514
ada = {
515515
projectFile = "project.gpr";

0 commit comments

Comments
 (0)