new paiyou#before avoid golang file format error

This commit is contained in:
wsq 2020-11-17 16:06:18 +08:00
parent d01bf79647
commit 7ea19256fc
2 changed files with 11 additions and 0 deletions

View File

@ -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'],

View File

@ -32,6 +32,7 @@
filemanager = "nerdtree"
enable_neomake = false
enable_ale = true
bootstrap_before = "paiyou#before"
bootstrap_after = "paiyou#after"
project_rooter_automatically = 0