From 1443924f9b84400731fa4928010327cdbcd0f1e5 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Fri, 22 May 2026 00:39:45 +0200 Subject: [PATCH] neoformat now detects powershell formatter --- lua/config/neoformat.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/config/neoformat.vim b/lua/config/neoformat.vim index 971b778..d8747a2 100644 --- a/lua/config/neoformat.vim +++ b/lua/config/neoformat.vim @@ -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']