summaryrefslogtreecommitdiff
path: root/lua/lang/graphql.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lang/graphql.lua')
-rw-r--r--lua/lang/graphql.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/lua/lang/graphql.lua b/lua/lang/graphql.lua
index b6abfabd..601541a6 100644
--- a/lua/lang/graphql.lua
+++ b/lua/lang/graphql.lua
@@ -1,7 +1,11 @@
local M = {}
M.config = function()
- O.lang.graphql = {}
+ O.lang.graphql = {
+ lsp = {
+ path = "graphql-lsp",
+ },
+ }
end
M.format = function()
@@ -20,7 +24,10 @@ M.lsp = function()
end
-- npm install -g graphql-language-service-cli
- require("lspconfig").graphql.setup { on_attach = require("lsp").common_on_attach }
+ require("lspconfig").graphql.setup {
+ cmd = { O.lang.graphql.lsp.path, "server", "-m", "stream" },
+ on_attach = require("lsp").common_on_attach,
+ }
end
M.dap = function()