From 0032332f084eb962ffbe29583cb35e736927c35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Fri, 28 Aug 2020 16:23:19 +0200 Subject: [PATCH] Update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .vimrc-gentoo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.vimrc-gentoo b/.vimrc-gentoo index 29aecdb..d4462c2 100644 --- a/.vimrc-gentoo +++ b/.vimrc-gentoo @@ -17,6 +17,7 @@ Plug 'scrooloose/nerdtree', "{ 'on': 'NERDTreeToggle' } Plug 'nmante/vim-latex-live-preview' "Plug 'lervag/vimtex' Plug 'junegunn/goyo.vim' +Plug 'prettier/vim-prettier', { 'do': 'yarn install' } Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} call plug#end() @@ -112,4 +113,5 @@ autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x! autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q! " Auto add notes git -autocmd BufWritePost *.md execute '!git add % && git commit -m "Auto-commit: saved %" && git push' | redraw! +autocmd BufWritePost *.md :Prettier +autocmd BufWritePost *.md silent! execute '!git add % && git commit -m "Auto-commit: saved %" && git push' | redraw!