Skip to content

Commit 6cb0d4b

Browse files
committed
fix(ltex-ls): command fails on windows when using mason
1 parent 46ce5fd commit 6cb0d4b

File tree

1 file changed

+1
-6
lines changed
  • lua/lspconfig/server_configurations

1 file changed

+1
-6
lines changed

lua/lspconfig/server_configurations/ltex.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ local language_id_mapping = {
1010
text = 'plaintext',
1111
}
1212

13-
local bin_name = 'ltex-ls'
14-
if vim.fn.has 'win32' == 1 then
15-
bin_name = bin_name .. '.bat'
16-
end
17-
1813
local filetypes = {
1914
'bib',
2015
'gitcommit',
@@ -56,7 +51,7 @@ end
5651

5752
return {
5853
default_config = {
59-
cmd = { bin_name },
54+
cmd = { 'ltex-ls' },
6055
filetypes = filetypes,
6156
root_dir = util.find_git_ancestor,
6257
single_file_support = true,

0 commit comments

Comments
 (0)