mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 10:10:04 +08:00
feat(ruby): add prettier formatter
This commit is contained in:
parent
a71e45b34b
commit
0fe1d4b9de
@ -1,5 +1,14 @@
|
|||||||
function! neoformat#formatters#ruby#enabled() abort
|
function! neoformat#formatters#ruby#enabled() abort
|
||||||
return ['rufo', 'rubybeautify', 'rubocop']
|
return ['prettier', 'rufo', 'rubybeautify', 'rubocop']
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! neoformat#formatters#ruby#prettier() abort
|
||||||
|
return {
|
||||||
|
\ 'exe': 'prettier',
|
||||||
|
\ 'args': ['--stdin-filepath', '"%:p"'],
|
||||||
|
\ 'stdin': 1,
|
||||||
|
\ 'try_node_exe': 1,
|
||||||
|
\ }
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! neoformat#formatters#ruby#rufo() abort
|
function! neoformat#formatters#ruby#rufo() abort
|
||||||
|
Loading…
Reference in New Issue
Block a user