diff options
| author | William Boman <william@redwill.se> | 2021-05-18 23:37:14 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-05-18 23:37:14 +0200 |
| commit | 12794b29276949508dcfc37df051ddf1f7278888 (patch) | |
| tree | 4878e0741c51aeeb3864dabceebba8a8de45550a /lua | |
| parent | elmls: set elm paths (diff) | |
| download | mason-12794b29276949508dcfc37df051ddf1f7278888.tar mason-12794b29276949508dcfc37df051ddf1f7278888.tar.gz mason-12794b29276949508dcfc37df051ddf1f7278888.tar.bz2 mason-12794b29276949508dcfc37df051ddf1f7278888.tar.lz mason-12794b29276949508dcfc37df051ddf1f7278888.tar.xz mason-12794b29276949508dcfc37df051ddf1f7278888.tar.zst mason-12794b29276949508dcfc37df051ddf1f7278888.zip | |
graphql: update root_pattern
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/graphql/init.lua | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/servers/graphql/init.lua b/lua/nvim-lsp-installer/servers/graphql/init.lua index b2d15b01..bb6b637f 100644 --- a/lua/nvim-lsp-installer/servers/graphql/init.lua +++ b/lua/nvim-lsp-installer/servers/graphql/init.lua @@ -13,6 +13,22 @@ return server.Server:new { default_options = { cmd = { path.concat { root_dir, "node_modules", ".bin", "graphql-lsp" }, "server", "-m", "stream" }, filetypes = { "typescriptreact", "javascriptreact", "graphql" }, - root_dir = util.root_pattern(".git", ".graphqlrc"), + root_dir = util.root_pattern( + -- Sourced from https://graphql-config.com/usage/ and https://git.io/Js2dt + "package.json", + "graphql.config.json", + "graphql.config.js", + "graphql.config.ts", + "graphql.config.toml", + "graphql.config.yaml", + "graphql.config.yml", + ".graphqlrc", + ".graphqlrc.json", + ".graphqlrc.toml", + ".graphqlrc.yaml", + ".graphqlrc.yml", + ".graphqlrc.js", + ".graphqlrc.ts" + ), }, } |
