changeset 277:f75a8cddf174

Support powershell * Powershell takes double quoted "arguments" literally and just errors out on a gutentags call * You could unquote all the strings and try to deal with the mess that is * Or you can just prepend '& ' to the whole thing and it automagically works
author Leonardo Valeri Manera <l.valerimanera@gmail.com>
date Sat, 15 Oct 2022 03:21:13 +0200
parents 0ebd3b1710aa
children abc91c5fb795
files autoload/gutentags.vim
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/gutentags.vim	Sat Oct 08 23:25:13 2022 +0800
+++ b/autoload/gutentags.vim	Sat Oct 15 03:21:13 2022 +0200
@@ -103,7 +103,11 @@
 " into a list of unquoted arguments on Unix/Mac.
 if has('win32') || has('win64')
     function! gutentags#make_args(cmd) abort
-        return join(a:cmd, ' ')
+        if &shell == 'pwsh' || &shell == 'powershell'
+            return '& ' . join(a:cmd, ' ')
+        else
+            return join(a:cmd, ' ')
+        endif
     endfunction
 else
     function! gutentags#make_args(cmd) abort