neovim/nvim-lspconfig

cmd should automatically try `.cmd` / `.exe` on Windows

justinmk opened this issue · 1 comments

Description

This is a tracking issue. It might require a core change in Nvim LSP, not sure yet.

Problem

configs manually specify .exe / .cmd variants for Windows. Example:

local bin_name = 'ada_language_server'

if vim.fn.has 'win32' == 1 then
  bin_name = 'ada_language_server.exe'
end

Proposal

These variants should be tried automatically on Windows.

This was already fixed by #2595

Though perhaps it should be a core feature of lsp.client ...