From 0064b446a02be13dba0f16f084e073b347716710 Mon Sep 17 00:00:00 2001 From: ichigo-gyuunyuu <15829692+ichigo-gyuunyuu@users.noreply.github.com> Date: Wed, 21 Jul 2021 01:03:15 +0530 Subject: [Feature] Allow for custom path to a language server binary (#1043) --- lua/lang/graphql.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lua/lang/graphql.lua') 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() -- cgit v1.2.3