From 7b044c3e7015f10c4bdade63f705a6fffc69f09b Mon Sep 17 00:00:00 2001 From: glacambre Date: Thu, 23 Apr 2020 08:55:00 +0200 Subject: Ada Language Server: describe how to set settings --- lua/nvim_lsp/als.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'lua/nvim_lsp/als.lua') diff --git a/lua/nvim_lsp/als.lua b/lua/nvim_lsp/als.lua index 7662b37d..33e44ec8 100755 --- a/lua/nvim_lsp/als.lua +++ b/lua/nvim_lsp/als.lua @@ -80,9 +80,22 @@ configs[server_name] = { https://github.com/AdaCore/ada_language_server Ada language server. Use `LspInstall als` to install it. + +Can be configured by passing a "settings" object to `als.setup{}`: + +```lua +require('nvim_lsp').als.setup{ + settings = { + ada = { + projectFile = "project.gpr"; + scenarioVariables = { ... }; + } + } +} +``` ]]; default_config = { - root_dir = [[util.root_pattern("Makefile")]]; + root_dir = [[util.root_pattern("Makefile", ".git")]]; }; }; }; -- cgit v1.2.3-70-g09d2