new paiyou#before avoid golang file format error
This commit is contained in:
parent
d01bf79647
commit
7ea19256fc
@ -1,3 +1,13 @@
|
||||
function! paiyou#before() abort
|
||||
" typescript
|
||||
let g:neoformat_typescriptreact_prettier = {
|
||||
\ 'exe': 'prettier',
|
||||
\ 'args': ['--stdin', '--stdin-filepath', '"%:p"', '--parser', 'typescript'],
|
||||
\ 'stdin': 1
|
||||
\ }
|
||||
let g:neoformat_enabled_typescriptreact = ['tsfmt', 'prettier']
|
||||
endfunction
|
||||
|
||||
function! paiyou#after() abort
|
||||
let g:ale_fixers = {
|
||||
\ 'javascript': ['eslint'],
|
||||
|
@ -32,6 +32,7 @@
|
||||
filemanager = "nerdtree"
|
||||
enable_neomake = false
|
||||
enable_ale = true
|
||||
bootstrap_before = "paiyou#before"
|
||||
bootstrap_after = "paiyou#after"
|
||||
project_rooter_automatically = 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user