1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-28 21:50:35 +08:00
2024-03-13 21:17:50 +08:00

46 lines
1.3 KiB
VimL

"=============================================================================
" neoformat.vim --- A Neovim plugin for formatting
" Copyright (c) 2016-2021 Steve Dignam
" Copyright (c) 2022 Eric Wong
" Author: Eric Wong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
""
" @section PowerShell formatters, supported-filetypes-powershell
" @parentsection supported-filetypes
" For PowerShell script, there are two default formatters.
"
" @subsection PowerShellBeautifier
" >
" {
" 'exe' : 'Edit-DTWBeautifyScript',
" 'args' : ["-IndentType FourSpaces", "-StandardOutput"],
" 'stdin' : 0,
" }
" <
" @subsection PSScriptAnalyzer
" >
" {
" 'exe' : 'Invoke-Formatter',
" 'args' : ['-ScriptDefinition (Get-Content ' . expand('%') . ' -Raw)'],
" 'stdin' : 0,
" 'no_append' : 1,
" }
" <
function! neoformat#formatters#powershell#enabled() abort
return neoformat#formatters#ps1#enabled()
endfunction
function! neoformat#formatters#powershell#PowerShellBeautifier() abort
return neoformat#formatters#ps1#PowerShellBeautifier()
endfunction
function! neoformat#formatters#powershell#PSScriptAnalyzer() abort
return neoformat#formatters#ps1#PSScriptAnalyzer()
endfunction