10 aug 2026
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user