From 2280d41b30f7ad4743e4044eab8dab17b433bbd2 Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 20 Mar 2025 16:19:24 +0000 Subject: [PATCH] Support g:ale_shell with the Neovim LSP client --- autoload/ale/lsp.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ale/lsp.vim b/autoload/ale/lsp.vim index 932465ee..439c912b 100644 --- a/autoload/ale/lsp.vim +++ b/autoload/ale/lsp.vim @@ -518,7 +518,7 @@ function! ale#lsp#StartProgram(conn_id, executable, command) abort if g:ale_use_neovim_lsp_api && !l:conn.is_tsserver " For Windows from 'cmd /s/c "foo bar"' we need 'foo bar' - let l:lsp_cmd = has('win32') + let l:lsp_cmd = has('win32') && type(a:command) is v:t_string \ ? ['cmd', '/s/c/', a:command[10:-2]] \ : a:command