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/python.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lua/lang/python.lua') diff --git a/lua/lang/python.lua b/lua/lang/python.lua index cbd319b0..b51ea1c4 100644 --- a/lua/lang/python.lua +++ b/lua/lang/python.lua @@ -25,6 +25,9 @@ M.config = function() "pylint", "mypy", }, + lsp = { + path = DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver", + }, } end @@ -58,7 +61,7 @@ M.lsp = function() -- npm i -g pyright require("lspconfig").pyright.setup { cmd = { - DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver", + O.lang.python.lsp.path, "--stdio", }, on_attach = require("lsp").common_on_attach, -- cgit v1.2.3