From 6cab04f6f2edd784ba1aa14a8493600b2d862f73 Mon Sep 17 00:00:00 2001 From: ranayas Date: Wed, 19 May 2021 17:48:05 -0500 Subject: [PATCH] Fix graphql-lsp graphql-lsp binary needs the graphql package in order to execute, otherwise it throws "Error: Cannot find module 'graphql'" --- lua/lspinstall/servers/graphql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lspinstall/servers/graphql.lua b/lua/lspinstall/servers/graphql.lua index 7d316d0..6583bba 100644 --- a/lua/lspinstall/servers/graphql.lua +++ b/lua/lspinstall/servers/graphql.lua @@ -4,6 +4,6 @@ config.default_config.cmd[1] = "./node_modules/.bin/graphql-lsp" return vim.tbl_extend('error', config, { install_script = [[ ! test -f package.json && npm init -y --scope=lspinstall || true - npm install graphql-language-service-cli@latest + npm install graphql graphql-language-service-cli@latest ]] })