diff --git a/.vim/plugged/vim-prettier b/.vim/plugged/vim-prettier new file mode 160000 index 0000000..0591cbc --- /dev/null +++ b/.vim/plugged/vim-prettier @@ -0,0 +1 @@ +Subproject commit 0591cbc23ded66ce0b4f14f58ea7c6bb82438305 diff --git a/.vimrc b/.vimrc index 24bcd1d..6613cdc 100644 --- a/.vimrc +++ b/.vimrc @@ -55,6 +55,9 @@ Plug 'junegunn/fzf.vim' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'leafgarland/typescript-vim' Plug 'peitalin/vim-jsx-typescript' +Plug 'prettier/vim-prettier', { + \ 'do': 'yarn install', + \ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] } call plug#end() " NERDTree