Skip to content

Commit

Permalink
Support powershell
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Taverius committed Oct 15, 2022
1 parent eae59a0 commit 1337b18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autoload/gutentags.vim
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ endfunction
" 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
Expand Down

0 comments on commit 1337b18

Please sign in to comment.