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/bright_script.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lua/lspconfig/server_configurations/bright_script.lua') diff --git a/lua/lspconfig/server_configurations/bright_script.lua b/lua/lspconfig/server_configurations/bright_script.lua index 4d58968b..6d4ba823 100644 --- a/lua/lspconfig/server_configurations/bright_script.lua +++ b/lua/lspconfig/server_configurations/bright_script.lua @@ -1,14 +1,8 @@ -local bin_name = 'bsc' -local cmd = { bin_name, '--lsp', '--stdio' } local util = require 'lspconfig/util' -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - return { default_config = { - cmd = cmd, + cmd = { 'bsc', '--lsp', '--stdio' }, filetypes = { 'brs' }, single_file_support = true, root_dir = util.root_pattern('makefile', 'Makefile', '.git'), -- cgit v1.2.3-70-g09d2