mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
feat(neoformat): add formatters
This commit is contained in:
parent
e22871492f
commit
4ad5da84a3
11
bundle/neoformat/autoload/neoformat/formatters/blade.vim
vendored
Normal file
11
bundle/neoformat/autoload/neoformat/formatters/blade.vim
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
function! neoformat#formatters#blade#enabled() abort
|
||||
return ['blade_formatter']
|
||||
endfunction
|
||||
|
||||
function! neoformat#formatters#blade#blade_formatter() abort
|
||||
return {
|
||||
\ 'exe': 'blade-formatter',
|
||||
\ 'args': ['--stdin', '-q'],
|
||||
\ 'stdin': 1
|
||||
\ }
|
||||
endfunction
|
11
bundle/neoformat/autoload/neoformat/formatters/gn.vim
vendored
Normal file
11
bundle/neoformat/autoload/neoformat/formatters/gn.vim
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
function! neoformat#formatters#gn#enabled() abort
|
||||
return ['gn']
|
||||
endfunction
|
||||
|
||||
function! neoformat#formatters#gn#gn() abort
|
||||
return {
|
||||
\ 'exe': 'gn',
|
||||
\ 'args': ['format', '--stdin'],
|
||||
\ 'stdin': 1,
|
||||
\ }
|
||||
endfunction
|
11
bundle/neoformat/autoload/neoformat/formatters/htmldjango.vim
vendored
Normal file
11
bundle/neoformat/autoload/neoformat/formatters/htmldjango.vim
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
function! neoformat#formatters#htmldjango#enabled() abort
|
||||
return ['djlint']
|
||||
endfunction
|
||||
|
||||
function! neoformat#formatters#htmldjango#djlint() abort
|
||||
return {
|
||||
\ 'exe': 'djlint',
|
||||
\ 'args': ['-', '--reformat'],
|
||||
\ 'stdin': 1,
|
||||
\ }
|
||||
endfunction
|
7
bundle/neoformat/autoload/neoformat/formatters/opencl.vim
vendored
Normal file
7
bundle/neoformat/autoload/neoformat/formatters/opencl.vim
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
function! neoformat#formatters#opencl#enabled() abort
|
||||
return ['clangformat']
|
||||
endfunction
|
||||
|
||||
function! neoformat#formatters#opencl#clangformat() abort
|
||||
return neoformat#formatters#c#clangformat()
|
||||
endfunction
|
11
bundle/neoformat/autoload/neoformat/formatters/prisma.vim
vendored
Normal file
11
bundle/neoformat/autoload/neoformat/formatters/prisma.vim
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
function! neoformat#formatters#prisma#enabled() abort
|
||||
return ['prettier']
|
||||
endfunction
|
||||
|
||||
function! neoformat#formatters#prisma#prettier() abort
|
||||
return {
|
||||
\ 'exe': 'prettier',
|
||||
\ 'args': ['--stdin-filepath', '"%:p"'],
|
||||
\ 'stdin': 1,
|
||||
\ }
|
||||
endfunction
|
20
bundle/neoformat/autoload/neoformat/formatters/solidity.vim
vendored
Normal file
20
bundle/neoformat/autoload/neoformat/formatters/solidity.vim
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
function! neoformat#formatters#solidity#enabled() abort
|
||||
return ['prettierd', 'prettier']
|
||||
endfunction
|
||||
|
||||
function! neoformat#formatters#solidity#prettier() abort
|
||||
return {
|
||||
\ 'exe': 'prettier',
|
||||
\ 'args': ['--stdin-filepath', '"%:p"'],
|
||||
\ 'stdin': 1,
|
||||
\ 'try_node_exe': 1,
|
||||
\ }
|
||||
endfunction
|
||||
|
||||
function! neoformat#formatters#solidity#prettierd() abort
|
||||
return {
|
||||
\ 'exe': 'prettierd',
|
||||
\ 'args': ['"%:p"'],
|
||||
\ 'stdin': 1,
|
||||
\ }
|
||||
endfunction
|
7
bundle/neoformat/autoload/neoformat/sugarss.vim
vendored
Normal file
7
bundle/neoformat/autoload/neoformat/sugarss.vim
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
function! neoformat#formatters#sugarss#enabled() abort
|
||||
return ['stylelint']
|
||||
endfunction
|
||||
|
||||
function! neoformat#formatters#sugarss#stylelint() abort
|
||||
return neoformat#formatters#css#stylelint()
|
||||
endfunction
|
Loading…
Reference in New Issue
Block a user