From 31a4d75abb4a47e6b6fd6dffc456a11f09ce7152 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Sat, 14 Aug 2021 11:54:35 -0700 Subject: feat(graphql): add more supported config files for root detection (#1141) --- lua/lspconfig/graphql.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/graphql.lua b/lua/lspconfig/graphql.lua index 6a93c6f8..b535b73e 100644 --- a/lua/lspconfig/graphql.lua +++ b/lua/lspconfig/graphql.lua @@ -8,7 +8,7 @@ configs[server_name] = { default_config = { cmd = { bin_name, 'server', '-m', 'stream' }, filetypes = { 'graphql' }, - root_dir = util.root_pattern('.git', '.graphqlrc'), + root_dir = util.root_pattern('.git', '.graphqlrc*', '.graphql.config.*'), }, docs = { @@ -22,7 +22,7 @@ npm install -g graphql-language-service-cli ``` ]], default_config = { - root_dir = [[root_pattern('.git', '.graphqlrc')]], + root_dir = [[root_pattern('.git', '.graphqlrc*', '.graphql.config.*')]], }, }, } -- cgit v1.2.3-70-g09d2