function! neoformat#formatters#ps1#enabled() abort return ['pwshfmt'] endfunction function! neoformat#formatters#ps1#pwshfmt() abort return { \ 'exe': 'pwsh', \ 'args': ['-NoProfile', '-Command', \ '"Import-Module (Resolve-Path \"/opt/powershell-editor-services/PSScriptAnalyzer/*/PSScriptAnalyzer.psd1\" | Select-Object -ExpandProperty Path); Invoke-Formatter -ScriptDefinition (\$input | Out-String)"'], \ 'stdin': 1 \ } endfunction