Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-08-28 16:23:19 +02:00
parent affdee7408
commit 0032332f08

View File

@ -17,6 +17,7 @@ Plug 'scrooloose/nerdtree', "{ 'on': 'NERDTreeToggle' }
Plug 'nmante/vim-latex-live-preview' Plug 'nmante/vim-latex-live-preview'
"Plug 'lervag/vimtex' "Plug 'lervag/vimtex'
Plug 'junegunn/goyo.vim' Plug 'junegunn/goyo.vim'
Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
call plug#end() call plug#end()
@ -112,4 +113,5 @@ autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x!<CR>
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR> autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
" Auto add notes git " Auto add notes git
autocmd BufWritePost *.md execute '!git add % && git commit -m "Auto-commit: saved %" && git push' | redraw! autocmd BufWritePost *.md :Prettier <CR>
autocmd BufWritePost *.md silent! execute '!git add % && git commit -m "Auto-commit: saved %" && git push' | redraw!