summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-22 23:35:50 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-22 23:35:50 -0400
commit9aa69b5c2b6213b17bcc6bcc7bd52c96047029e1 (patch)
tree4f14f1ed52825b82a512ba4707bad4a23a58567c /.config/nvim
parent9618844a344761fc1b8911b217178cd512bbad8f (diff)
Rnw knitr compiling in vim
Diffstat (limited to '.config/nvim')
-rwxr-xr-x.config/nvim/init.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index fee91e3..d4151ab 100755
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -144,6 +144,8 @@ set linebreak
" Nvim-R
let R_rconsole_width = 0
let R_openpdf = 0
+au BufWritePost *.rmd,*.rnw, silent! :call RWeave("nobib", 1, 1)
+au VimLeave *.rmd,*.rnw,*.tex !texclear %
" Emmet Expansion
let g:user_emmet_leader_key=','
" Enable kite autocompletion
@@ -194,7 +196,6 @@ let g:tex_flavor = 'latex'
map <leader>c :w! \| AsyncRun compiler <c-r>%<CR><CR>
autocmd InsertLeave,TextChanged *.gd,*.ms,*.mom :w! | :execute 'silent AsyncRun compiler %'
" autocmd InsertLeave *.rmd,*.rnw,*.tex :w! | :execute 'silent AsyncRun compiler %; todotable % TODO FIXME CHANGED XXX IDEA HACK NOTE REVIEW NB BUG QUESTION COMBAK'
-autocmd VimLeave *.rmd,*.rnw,*.tex !texclear %
map <leader>x :w! \| AsyncRun todotable <c-r>% TODO FIXME CHANGED XXX IDEA HACK NOTE REVIEW NB BUG QUESTION COMBAK TEMP<CR><CR>
" Have dwmblocks automatically recompile and run when you edit this file in
autocmd BufWritePost ~/Compilation/dwmblocks/config.h !cd ~/Compilation/dwmblocks/; make && sudo make install && { killall -q dwmblocks;setsid dwmblocks & }