aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/graphql.lua
diff options
context:
space:
mode:
authorKeith Smiley <keithbsmiley@gmail.com>2021-08-14 11:54:35 -0700
committerGitHub <noreply@github.com>2021-08-14 14:54:35 -0400
commit31a4d75abb4a47e6b6fd6dffc456a11f09ce7152 (patch)
treef03a73f4d2f1a99d9099451106b871e48e3fd539 /lua/lspconfig/graphql.lua
parent[docgen] Update CONFIG.md (diff)
downloadnvim-lspconfig-31a4d75abb4a47e6b6fd6dffc456a11f09ce7152.tar
nvim-lspconfig-31a4d75abb4a47e6b6fd6dffc456a11f09ce7152.tar.gz
nvim-lspconfig-31a4d75abb4a47e6b6fd6dffc456a11f09ce7152.tar.bz2
nvim-lspconfig-31a4d75abb4a47e6b6fd6dffc456a11f09ce7152.tar.lz
nvim-lspconfig-31a4d75abb4a47e6b6fd6dffc456a11f09ce7152.tar.xz
nvim-lspconfig-31a4d75abb4a47e6b6fd6dffc456a11f09ce7152.tar.zst
nvim-lspconfig-31a4d75abb4a47e6b6fd6dffc456a11f09ce7152.zip
feat(graphql): add more supported config files for root detection (#1141)
Diffstat (limited to 'lua/lspconfig/graphql.lua')
-rw-r--r--lua/lspconfig/graphql.lua4
1 files changed, 2 insertions, 2 deletions
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.*')]],
},
},
}