summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-06 12:05:57 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-06 12:05:57 -0400
commitd5e71cd9ce195d381df6d75cc22af2cbc7b6ca43 (patch)
treeb92527d803e33e66bfb1eb444b4745a3906e470b /.config/nvim
parenta7a8de0f4553de0e33617c070dc536268b144308 (diff)
vimtex lang, screenstatus uses integers now
Diffstat (limited to '.config/nvim')
-rwxr-xr-x.config/nvim/init.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 5b11c2f..95c0c14 100755
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -186,6 +186,7 @@ autocmd FileType go nmap <leader>r :call ReuseVimGoTerm('GoRun')<Return>
" Vimtex pdf viewer
let g:latex_view_general_viewer = 'zathura'
let g:vimtex_view_method = "zathura"
+let g:tex_flavor = 'latex'
" #---Document Compilation/Visualisation---# "
" Compile document, be it groff/LaTeX/markdown/etc.
@@ -194,6 +195,8 @@ autocmd InsertLeave,TextChanged *.gd,*.ms,*.mom :w! | :execute 'silent AsyncRun
" 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/; 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