diff options
| author | William Boman <william@redwill.se> | 2021-08-14 23:19:23 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-08-15 00:47:15 +0200 |
| commit | d8f4f30463fcfc4b8b60811dbe195aba86917966 (patch) | |
| tree | c6a004cb1a08921184f7b5d85721e9144f20aa00 /lua/nvim-lsp-installer/servers/graphql/init.lua | |
| parent | add `env` option to shell.raw, and other cosmetic improvements (diff) | |
| download | mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.gz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.bz2 mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.lz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.xz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.zst mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.zip | |
stylua
Diffstat (limited to 'lua/nvim-lsp-installer/servers/graphql/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/graphql/init.lua | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/lua/nvim-lsp-installer/servers/graphql/init.lua b/lua/nvim-lsp-installer/servers/graphql/init.lua index ec4ecb8f..5bfac4fe 100644 --- a/lua/nvim-lsp-installer/servers/graphql/init.lua +++ b/lua/nvim-lsp-installer/servers/graphql/init.lua @@ -1,33 +1,33 @@ -local util = require("lspconfig.util") +local util = require "lspconfig.util" -local server = require("nvim-lsp-installer.server") -local npm = require("nvim-lsp-installer.installers.npm") +local server = require "nvim-lsp-installer.server" +local npm = require "nvim-lsp-installer.installers.npm" -local root_dir = server.get_server_root_path("graphql") +local root_dir = server.get_server_root_path "graphql" return server.Server:new { name = "graphql", root_dir = root_dir, - installer = npm.packages { "graphql-language-service-cli@latest", "graphql" }, + installer = npm.packages { "graphql-language-service-cli@latest", "graphql" }, default_options = { cmd = { npm.executable(root_dir, "graphql-lsp"), "server", "-m", "stream" }, filetypes = { "typescriptreact", "javascriptreact", "graphql" }, 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" + -- 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" ), }, } |
