diff options
| author | glacambre <code@lacamb.re> | 2020-04-23 08:55:00 +0200 |
|---|---|---|
| committer | glacambre <code@lacamb.re> | 2020-04-23 08:55:00 +0200 |
| commit | 7b044c3e7015f10c4bdade63f705a6fffc69f09b (patch) | |
| tree | 2590fba9d7f8409b62cf013eaf2215aead247451 | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-7b044c3e7015f10c4bdade63f705a6fffc69f09b.tar nvim-lspconfig-7b044c3e7015f10c4bdade63f705a6fffc69f09b.tar.gz nvim-lspconfig-7b044c3e7015f10c4bdade63f705a6fffc69f09b.tar.bz2 nvim-lspconfig-7b044c3e7015f10c4bdade63f705a6fffc69f09b.tar.lz nvim-lspconfig-7b044c3e7015f10c4bdade63f705a6fffc69f09b.tar.xz nvim-lspconfig-7b044c3e7015f10c4bdade63f705a6fffc69f09b.tar.zst nvim-lspconfig-7b044c3e7015f10c4bdade63f705a6fffc69f09b.zip | |
Ada Language Server: describe how to set settings
| -rwxr-xr-x | lua/nvim_lsp/als.lua | 15 |
1 files changed, 14 insertions, 1 deletions
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")]]; }; }; }; |
