Open afonsolage opened 4 years ago
I don't think we have any support for pwsh
yet. Windows is supported other ways, but not with the VIM shell changed like this.
I'd be happy to accept a contribution that fixed this for first class Powershell support and escaping everything right across platforms, but I don't have access to or experience with Windows to make this happen myself. If you'd like to take a stab at it go ahead. I think there are some other shell support functions you could model from.
I have very much the same problem.
My settings are
set shell=pwsh\ -nop\ -nol
set shellcmdflag=-c
Commenting these out makes TagBar to run.
I have managed to (probably) solve the problem, writing my own function, temporarily substituting cmd
for shell
:
function! MyTagbarToggle()
if has("win32") " tagbar is broken with pwsh
let l:old_shell=&shell
set shell=cmd
endif
execute "TagbarToggle"
if exists("l:old_shell")
let &shell=l:old_shell
endif
endfunction
@avysk Happy to facilitate PR's that will solve this for everybody if you want to contribute.
When I try to run
:TagbarToggle
I get the following error:I'm using PowerShell Core and the command
""ctags" --version"
won't work because the extra quotes. So this is my shell config on NeoVim:It seems that Tagbar is ignoring the shellquote and shellxquote configurations.
If I run
ctags --version
I got the following output:There is any workaround for this?
Thanks!