From eb36e0185ad4b92b0999fb698428f2966334d2c1 Mon Sep 17 00:00:00 2001 From: lucasbrg Date: Tue, 17 Sep 2024 02:39:08 -0300 Subject: fix(ltex-ls): command fails on windows when using mason (#3305) --- lua/lspconfig/server_configurations/ltex.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/ltex.lua b/lua/lspconfig/server_configurations/ltex.lua index 6afc30a5..4a3ae0f4 100644 --- a/lua/lspconfig/server_configurations/ltex.lua +++ b/lua/lspconfig/server_configurations/ltex.lua @@ -10,11 +10,6 @@ local language_id_mapping = { text = 'plaintext', } -local bin_name = 'ltex-ls' -if vim.fn.has 'win32' == 1 then - bin_name = bin_name .. '.bat' -end - local filetypes = { 'bib', 'gitcommit', @@ -56,7 +51,7 @@ end return { default_config = { - cmd = { bin_name }, + cmd = { 'ltex-ls' }, filetypes = filetypes, root_dir = util.find_git_ancestor, single_file_support = true, -- cgit v1.2.3-70-g09d2