dotfiles

My personal dotfiles 💠️

commit da7e14c1fcfe6d57d2490254242ed3ab4928c7b8
parent 1e0308fafbcdc2baa7d3a53bf3b15c30a20281fe
Author: Pablo <pablo-escobar@riseup.net>
Date:   Mon,  2 Aug 2021 11:26:03 -0300

Added some lines in init.vim so that Vim highlights align* and TikZ environments as equations

Also updated the backup script

Diffstat:
M.config/fish/functions/backup.fish | 1-
M.config/nvim/init.vim | 4+++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.config/fish/functions/backup.fish b/.config/fish/functions/backup.fish
@@ -33,6 +33,5 @@ function backup -d "Backup my relevant data in my backup drive."
 
   gpg --export-ownertrust \
     > "/run/media/pablo/Seagate Backup Plus Drive/trustdb.txt" 
-
 end
 
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -110,8 +110,10 @@ au BufNewFile,BufRead *.tikz,*.tex syn match texTypeStyle "\\mathds\>"
 " Highlight \citetitle in the same way as \cite
 au BufNewFile,BufRead *.tikz,*.tex syn match texRefZone '\\citetitle\%([tp]\*\=\)\=' nextgroup=texRefOption,texCite
 
-" Highlight stuff inside a align block as math
+" Highlight stuff inside a align blocks and TikZ environments as math
 au BufNewFile,BufRead *.tikz,*.tex call TexNewMathZone("E","align",1)
+au BufNewFile,BufRead *.tikz,*.tex call TexNewMathZone("E","tikzcd",1)
+au BufNewFile,BufRead *.tikz,*.tex call TexNewMathZone("E","tikzpicture",1)
 
 """ Language-specific stuff