neoformat now detects powershell formatter

This commit is contained in:
2026-05-22 00:39:45 +02:00
parent 82ffdf6ef4
commit 1443924f9b
+8
View File
@@ -1 +1,9 @@
let g:neoformat_enabled_yaml = ['prettierd']
let g:neoformat_ps1_psscriptanalyzer = {
\ '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,
\ }
let g:neoformat_enabled_ps1 = ['psscriptanalyzer']