summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-07 23:41:05 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-07 23:41:05 -0400
commitc295d8331ff5193cb97b1e3f6b15836654b010cc (patch)
tree5b3b877770702b4ccd6a4825a231fd0790ad149a /.config/nvim
parentd5e71cd9ce195d381df6d75cc22af2cbc7b6ca43 (diff)
auto reload dwmblocks on vim save
Diffstat (limited to '.config/nvim')
-rwxr-xr-x.config/nvim/init.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 95c0c14..260a1ff 100755
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -196,7 +196,7 @@ autocmd InsertLeave,TextChanged *.gd,*.ms,*.mom :w! | :execute 'silent AsyncRun
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/; sudo make install && { killall -q dwmblocks;setsid dwmblocks & }
+autocmd BufWritePost ~/Compilation/dwmblocks/config.h !cd ~/Compilation/dwmblocks/; make && sudo make install && { killall -q dwmblocks;setsid dwmblocks & }
" Open corresponding .pdf/.html or preview
map <leader>p :! opout <c-r>%<CR><CR>
" Open corresponding .pdf/.html or preview