From 7889e59d477706f8149578563ba3131dbaf115a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tanguy=20G=C3=A9r=C3=B4me?= Date: Tue, 9 Mar 2021 15:25:28 +0200 Subject: [PATCH] added XO shortcut + removed eslint --- .vimrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index 7c3a6bc..7726d42 100644 --- a/.vimrc +++ b/.vimrc @@ -40,9 +40,11 @@ let g:UltiSnipsExpandTrigger="" " if isdirectory('./node_modules') && isdirectory('./node_modules/prettier') " let g:coc_global_extensions += ['coc-prettier'] " endif -if isdirectory('./node_modules') && isdirectory('./node_modules/eslint') - let g:coc_global_extensions += ['coc-eslint'] -endif +" +" disabled eslint in favor of xo +" if isdirectory('./node_modules') && isdirectory('./node_modules/eslint') +" let g:coc_global_extensions += ['coc-eslint'] +" endif " coc shortcuts nnoremap gK :call CocAction('doHover') @@ -55,6 +57,7 @@ nnoremap d :CocList diagnostics nnoremap s :CocList -I symbols nmap do (coc-codeaction) nmap rn (coc-rename) +nmap xo :!npx xo --fix % " style