diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs/ada_ls.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/lspconfig/configs/ada_ls.lua b/lua/lspconfig/configs/ada_ls.lua index c532f641..7595a6e8 100644 --- a/lua/lspconfig/configs/ada_ls.lua +++ b/lua/lspconfig/configs/ada_ls.lua @@ -4,7 +4,7 @@ return { default_config = { cmd = { 'ada_language_server' }, filetypes = { 'ada' }, - root_dir = util.root_pattern('Makefile', '.git', '*.gpr', '*.adc'), + root_dir = util.root_pattern('Makefile', '.git', 'alire.toml', '*.gpr', '*.adc'), }, docs = { description = [[ @@ -12,7 +12,9 @@ https://github.com/AdaCore/ada_language_server Installation instructions can be found [here](https://github.com/AdaCore/ada_language_server#Install). -Can be configured by passing a "settings" object to `ada_ls.setup{}`: +Workspace-specific [settings](https://github.com/AdaCore/ada_language_server/blob/master/doc/settings.md) such as `projectFile` can be provided in a `.als.json` file at the root of the workspace. + +Alternatively, configuration may be passed as a "settings" object to `ada_ls.setup{}`: ```lua require('lspconfig').ada_ls.setup{ |
