From 4a69ad6646eaad752901413c9a0dced73dfb562d Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 9 May 2023 15:10:14 +0800 Subject: fix: use exepath on server command (#2595) --- lua/lspconfig/server_configurations/lua_ls.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'lua/lspconfig/server_configurations/lua_ls.lua') diff --git a/lua/lspconfig/server_configurations/lua_ls.lua b/lua/lspconfig/server_configurations/lua_ls.lua index 7ab54cf8..acb57318 100644 --- a/lua/lspconfig/server_configurations/lua_ls.lua +++ b/lua/lspconfig/server_configurations/lua_ls.lua @@ -10,16 +10,9 @@ local root_files = { 'selene.yml', } -local bin_name = 'lua-language-server' -local cmd = { bin_name } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name } -end - return { default_config = { - cmd = cmd, + cmd = { 'lua-language-server' }, filetypes = { 'lua' }, root_dir = function(fname) local root = util.root_pattern(unpack(root_files))(fname) -- cgit v1.2.3-70-g09d2