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/svelte.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lua/lang/svelte.lua') diff --git a/lua/lang/svelte.lua b/lua/lang/svelte.lua index 220c2c18..ad6dd094 100644 --- a/lua/lang/svelte.lua +++ b/lua/lang/svelte.lua @@ -1,7 +1,11 @@ local M = {} M.config = function() - O.lang.svelte = {} + O.lang.svelte = { + lsp = { + path = DATA_PATH .. "/lspinstall/svelte/node_modules/.bin/svelteserver", + }, + } end M.format = function() @@ -20,7 +24,7 @@ M.lsp = function() end require("lspconfig").svelte.setup { - cmd = { DATA_PATH .. "/lspinstall/svelte/node_modules/.bin/svelteserver", "--stdio" }, + cmd = { O.lang.svelte.lsp.path, "--stdio" }, filetypes = { "svelte" }, root_dir = require("lspconfig.util").root_pattern("package.json", ".git"), on_attach = require("lsp").common_on_attach, -- cgit v1.2.3