aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp
diff options
context:
space:
mode:
authorglacambre <code@lacamb.re>2020-04-23 08:55:00 +0200
committerglacambre <code@lacamb.re>2020-04-23 08:55:00 +0200
commit7b044c3e7015f10c4bdade63f705a6fffc69f09b (patch)
tree2590fba9d7f8409b62cf013eaf2215aead247451 /lua/nvim_lsp
parent[docgen] Update README.md (diff)
downloadnvim-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
Diffstat (limited to 'lua/nvim_lsp')
-rwxr-xr-xlua/nvim_lsp/als.lua15
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")]];
};
};
};