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/json.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lua/lang/json.lua') diff --git a/lua/lang/json.lua b/lua/lang/json.lua index 92ea769e..e46f38cb 100644 --- a/lua/lang/json.lua +++ b/lua/lang/json.lua @@ -12,6 +12,9 @@ M.config = function() args = { "-m", "json.tool" }, stdin = true, }, + lsp = { + path = DATA_PATH .. "/lspinstall/json/vscode-json/json-language-features/server/dist/node/jsonServerMain.js", + }, } end @@ -46,7 +49,7 @@ M.lsp = function() require("lspconfig").jsonls.setup { cmd = { "node", - DATA_PATH .. "/lspinstall/json/vscode-json/json-language-features/server/dist/node/jsonServerMain.js", + O.lang.json.lsp.path, "--stdio", }, on_attach = require("lsp").common_on_attach, -- cgit v1.2.3