diff options
Diffstat (limited to 'lua/lspconfig/als.lua')
| -rw-r--r-- | lua/lspconfig/als.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/lspconfig/als.lua b/lua/lspconfig/als.lua index 067445a1..f0e7808e 100644 --- a/lua/lspconfig/als.lua +++ b/lua/lspconfig/als.lua @@ -11,8 +11,7 @@ configs[server_name] = { default_config = { cmd = { bin_name }, filetypes = { 'ada' }, - -- *.gpr and *.adc would be nice to have here - root_dir = util.root_pattern('Makefile', '.git'), + root_dir = util.root_pattern('Makefile', '.git', '*.gpr', '*.adc'), }, docs = { package_json = 'https://raw.githubusercontent.com/AdaCore/ada_language_server/master/integration/vscode/ada/package.json', @@ -35,7 +34,7 @@ require('lspconfig').als.setup{ ``` ]], default_config = { - root_dir = [[util.root_pattern("Makefile", ".git")]], + root_dir = [[util.root_pattern("Makefile", ".git", "*.gpr", "*.adc")]], }, }, } |
