From 1c5bd56b8bd187a7f6cd19d5eae2c4d9fdb0563a Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Mon, 5 Jul 2021 08:37:52 +0200 Subject: [PATCH] update js config --- vim/ftplugin/javascript.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vim/ftplugin/javascript.vim b/vim/ftplugin/javascript.vim index 4a8b36c..213f547 100644 --- a/vim/ftplugin/javascript.vim +++ b/vim/ftplugin/javascript.vim @@ -2,8 +2,8 @@ let b:ale_fixers = {} let b:ale_fixers['javascript'] = ['eslint'] let b:ale_fixers['typescript'] = ['eslint'] let b:ale_fixers['json'] = ['eslint'] -let b:ale_javascript_prettier_options = '--no-semi --single-quote --tab-width 4' -let b:ale_typescript_prettier_options = '--no-semi --single-quote --tab-width 4' +let b:ale_javascript_prettier_options = '--no-semi --single-quote --tab-width 2' +let b:ale_typescript_prettier_options = '--no-semi --single-quote --tab-width 2' let b:ale_fixers['vue'] = ['prettier'] let b:ale_vue_prettier_options = '--no-semi --single-quote' let b:ale_fix_on_save = 1 @@ -20,6 +20,7 @@ g:ale_json_eslint_use_global = 1 g:ale_json_eslint_executable = 'yarn' g:ale_json_eslint_options = 'run eslint' +let g:jsdoc_formatter = 'tsdoc' "autocmd bufwritepost *.js silent !standard --fix % setlocal wildignore+=node_modules @@ -28,5 +29,6 @@ setlocal tabstop=2 setlocal shiftwidth=2 " Create jsdoc with ,h -nnoremap h :JsDoc +nnoremap h :JsDoc nnoremap Biawait A +nnoremap :Prettier