From 79aedd3f6567e10e7d80f6878c9c31b53fee6c75 Mon Sep 17 00:00:00 2001 From: Tama McGlinn Date: Wed, 3 Nov 2021 10:50:33 +0100 Subject: feat(als): add gpr and .adc root markers (#1368) --- lua/lspconfig/als.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lua') 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")]], }, }, } -- cgit v1.2.3-70-g09d2