Skip to content

Commit de4b604

Browse files
authored
feat(ada_ls): alire.toml #3667
1 parent 5f395bf commit de4b604

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lua/lspconfig/configs/ada_ls.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ return {
44
default_config = {
55
cmd = { 'ada_language_server' },
66
filetypes = { 'ada' },
7-
root_dir = util.root_pattern('Makefile', '.git', '*.gpr', '*.adc'),
7+
root_dir = util.root_pattern('Makefile', '.git', 'alire.toml', '*.gpr', '*.adc'),
88
},
99
docs = {
1010
description = [[
1111
https://github.com/AdaCore/ada_language_server
1212
1313
Installation instructions can be found [here](https://github.com/AdaCore/ada_language_server#Install).
1414
15-
Can be configured by passing a "settings" object to `ada_ls.setup{}`:
15+
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.
16+
17+
Alternatively, configuration may be passed as a "settings" object to `ada_ls.setup{}`:
1618
1719
```lua
1820
require('lspconfig').ada_ls.setup{

0 commit comments

Comments
 (0)