Remove config.cmd executable check

Apparently it doesn't work right on windows:

https://github.com/mfussenegger/nvim-jdtls/issues/479

The check is redundant anyway, because the built-in client will fail
with a good error message since:

1a60580925
This commit is contained in:
Mathias Fussenegger 2023-05-08 17:11:34 +02:00 committed by Mathias Fußenegger
parent b041dd4308
commit 355de7458f

View file

@ -214,10 +214,6 @@ function M.start_or_attach(config)
'Config must have a `cmd` property and that must be a table. Got: '
.. table.concat(config.cmd, ' ')
)
assert(
tonumber(vim.fn.executable(config.cmd[1])) == 1,
'LSP cmd must be an executable: ' .. config.cmd[1]
)
config.name = 'jdtls'
local bufnr = api.nvim_get_current_buf()