From 6fe9aa5329e1a2a862b2f7f63cbc96ea90ce62a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sat, 29 Aug 2020 13:54:33 +0200 Subject: [PATCH] Updated vimrc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .vimrc-gentoo | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.vimrc-gentoo b/.vimrc-gentoo index 29db48a..ba8760a 100644 --- a/.vimrc-gentoo +++ b/.vimrc-gentoo @@ -19,6 +19,10 @@ Plug 'lervag/vimtex' Plug 'junegunn/goyo.vim' Plug 'prettier/vim-prettier', { 'do': 'npm install --force' } Plug 'iamcco/markdown-preview.nvim', { 'do': 'npm install --force' } +" Problem with vim-prettier +" +" git checkout -b test origin/feature/issue-232-add-support-for-prettier-2.x; +" npm install --force call plug#end() " Status-line @@ -114,6 +118,6 @@ 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 :Prettier -autocmd BufWritePost *.md silent! execute '!git add % && git commit -m "Auto-commit: saved %" && git push' | redraw! +autocmd BufWritePost *.md :Prettier +autocmd BufWritePost *.md execute '!git add % && git commit -m "Auto-commit: saved %" && git push' | redraw!