From fa8d2fc654aed7ee7c8172b787feb70feb95a4d4 Mon Sep 17 00:00:00 2001 From: Ghjuvan Lacambre Date: Thu, 24 Oct 2024 14:30:18 +0200 Subject: [PATCH] README.md: update instructions for built-in Neovim LSP Neovim's repository for lsp configuration was renamed from "nvim_lsp" to "lspconfig" and the built-in configuration for the default Ada Language Server was renamed from "als" to "ada_ls". See https://github.com/neovim/nvim-lspconfig/pull/3394 for more information. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b9b4bfda..2425ef50 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ The `ada_language_server` relies on [Libadalang](https://github.com/AdaCore/liba Most of this computation is done while indexing which will create an internal cache. The expected memory size of this cache is around 300Mb per 100k lines of Ada code. Furthermore, 450Mb are necessary for the runtime. -Please note that some Ada structures like generics and tagged types might +Please note that some Ada structures like generics and tagged types might increase the memory usage. This is also the case when using aggregate projects. These measures were taken using both Resident Set Size and [Valgrind massif](https://valgrind.org/docs/manual/ms-manual.html) on Ubuntu 22.04LTS. @@ -496,20 +496,20 @@ Ada Language Server. In order to use it with minimal effort, follow these steps: * Install the ada language server and make sure it's in your $PATH. * Use your favorite Neovim plugin manager to add the default set of [LSP configuration files](https://github.com/neovim/nvim-lspconfig) to Neovim. -* Enable the Ada Language Server by adding `:lua require('lspconfig').als.setup{}` to - your init.vim. +* Add `require('lspconfig').ada_ls.setup{}` to your init.lua in order to enable + the Ada Language Server. If you would rather not have the ada language server in your path, you can give the lsp client an absolute path to the ALS executable: ```lua -require('lspconfig').als.setup{ cmd = "/path/to/als/executable" } +require('lspconfig').ada_ls.setup{ cmd = "/path/to/als/executable" } ``` Configuring the language server's settings can be achieved like this: ```lua -require('nvim_lsp').als.setup{ +require('lspconfig').ada_ls.setup{ settings = { ada = { projectFile = "project.gpr";