From 08168e02807cdd6d7cd6db4c138c938f0eca2bf7 Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 1 Jul 2023 23:52:47 +0200 Subject: [PATCH] vimrc(plug): add prettier config --- .vim/vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vim/vimrc b/.vim/vimrc index f87d007..37b8ba5 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -78,6 +78,10 @@ Plug 'tpope/vim-jdaddy', { 'for': 'json' } Plug 'tpope/vim-ragtag', { 'for': ['html', 'xhtml', 'wml', 'xml', 'xslt', 'xsd', 'jsp', 'php', 'aspperl', 'aspvbs', 'cf', 'mason', 'htmldjango', 'eruby'] } Plug 'bazelbuild/vim-ft-bzl', { 'for': ['starlark', 'bzl'] } Plug 'z0mbix/vim-shfmt', { 'for': ['sh', 'bash'] } +" post install (yarn install | npm install) then load plugin only for editing supported files +Plug 'prettier/vim-prettier', { + \ 'do': 'npm install --frozen-lockfile', + \ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'vue', 'svelte', 'yaml', 'html', 'gohtmltmpl'] } " Plug 'gorodinskiy/vim-coloresque'| " coloured background for colour names/codes " Plug 'lpinilla/vim-codepainter'| " text highlighting