[vim] powershell
ChillerDragon opened this issue · comments
autocmd filetype ps1 nnoremap <leader>rt :exec '!PowerShell -Command "Import-Module PSScriptAnalyzer;Invoke-ScriptAnalyzer -Path '.shellescape('%')'"'<CR>
tested on windows and works
dependencies:
choco install psscriptanalyzer