|
@ -1,11 +1,15 @@ |
|
|
" use prettier in ALE |
|
|
" use prettier in ALE |
|
|
let b:ale_fixers = {} |
|
|
let b:ale_fixers = {} |
|
|
let b:ale_fixers['javascript'] = ['prettier'] |
|
|
let b:ale_fixers['javascript'] = ['prettier'] |
|
|
|
|
|
let b:ale_fixers['typescript'] = ['prettier'] |
|
|
let b:ale_javascript_prettier_options = '--no-semi --single-quote' |
|
|
let b:ale_javascript_prettier_options = '--no-semi --single-quote' |
|
|
|
|
|
let b:ale_typescript_prettier_options = '--no-semi --single-quote' |
|
|
let b:ale_fixers['vue'] = ['prettier'] |
|
|
let b:ale_fixers['vue'] = ['prettier'] |
|
|
let b:ale_vue_prettier_options = '--no-semi --single-quote' |
|
|
let b:ale_vue_prettier_options = '--no-semi --single-quote' |
|
|
let b:ale_fix_on_save = 1 |
|
|
let b:ale_fix_on_save = 1 |
|
|
let b:ale_javascript_prettier_use_local_config = 1 |
|
|
let b:ale_javascript_prettier_use_local_config = 1 |
|
|
|
|
|
let b:ale_typescript_prettier_use_local_config = 1 |
|
|
|
|
|
let b:ale_linters=[''] |
|
|
|
|
|
|
|
|
"autocmd bufwritepost *.js silent !standard --fix % |
|
|
"autocmd bufwritepost *.js silent !standard --fix % |
|
|
setlocal wildignore+=node_modules |
|
|
setlocal wildignore+=node_modules |
|
@ -15,3 +19,4 @@ setlocal shiftwidth=2 |
|
|
|
|
|
|
|
|
" Create jsdoc with ,h |
|
|
" Create jsdoc with ,h |
|
|
nnoremap <leader>h :JsDoc<CR> |
|
|
nnoremap <leader>h :JsDoc<CR> |
|
|
|
|
|
nnoremap <F8> Biawait <ESC>A |