diff options
| author | William Boman <william@redwill.se> | 2021-07-10 16:02:44 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-07-10 16:02:44 +0200 |
| commit | 156478b14cf4ce19262253b044aca27f5f448bc5 (patch) | |
| tree | 43d25f4776f3036e0bf686572bb0e53c06a6e896 /lua/nvim-lsp-installer/servers/graphql | |
| parent | clangd, rust_analyzer: simplify install script a bit (diff) | |
| download | mason-156478b14cf4ce19262253b044aca27f5f448bc5.tar mason-156478b14cf4ce19262253b044aca27f5f448bc5.tar.gz mason-156478b14cf4ce19262253b044aca27f5f448bc5.tar.bz2 mason-156478b14cf4ce19262253b044aca27f5f448bc5.tar.lz mason-156478b14cf4ce19262253b044aca27f5f448bc5.tar.xz mason-156478b14cf4ce19262253b044aca27f5f448bc5.tar.zst mason-156478b14cf4ce19262253b044aca27f5f448bc5.zip | |
npm, pip3: add executable(root_dir, executable) util function
Diffstat (limited to 'lua/nvim-lsp-installer/servers/graphql')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/graphql/init.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/servers/graphql/init.lua b/lua/nvim-lsp-installer/servers/graphql/init.lua index bb6b637f..ec4ecb8f 100644 --- a/lua/nvim-lsp-installer/servers/graphql/init.lua +++ b/lua/nvim-lsp-installer/servers/graphql/init.lua @@ -1,7 +1,6 @@ local util = require("lspconfig.util") local server = require("nvim-lsp-installer.server") -local path = require("nvim-lsp-installer.path") local npm = require("nvim-lsp-installer.installers.npm") local root_dir = server.get_server_root_path("graphql") @@ -11,7 +10,7 @@ return server.Server:new { root_dir = root_dir, installer = npm.packages { "graphql-language-service-cli@latest", "graphql" }, default_options = { - cmd = { path.concat { root_dir, "node_modules", ".bin", "graphql-lsp" }, "server", "-m", "stream" }, + 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 |
