dotfiles

My personal dotfiles 💠️

commit dd805454becfa2d1ed96623aa9824f1238a934eb
parent f32b882b5364f885871583a02abe68544b184d72
Author: Pablo <pablo-escobar@riseup.net>
Date:   Mon, 14 Jun 2021 10:00:23 -0300

Updated the aspell dictionaries

Also improved the LaTeX hilighting in NeoVim

Diffstat:
M.config/aspell/.aspell.en.prepl | 3+++
M.config/aspell/.aspell.en.pws | 8+++++---
M.config/nvim/init.vim | 24+++++++++++++++++++++++-
3 files changed, 31 insertions(+), 4 deletions(-)
diff --git a/.config/aspell/.aspell.en.prepl b/.config/aspell/.aspell.en.prepl
@@ -9,6 +9,7 @@ knowloge knowledge
 obtaint obtain
 runned Rundown
 runned rundown
+dirct direct
 barrior barrier
 sintactic syntactic
 imples implies
@@ -39,6 +40,8 @@ writting writing
 subrepresentation subrepresentations
 answare answer
 yhe the
+irreducle irreducible
 refered referred
+clain claim
 chacters characters
 trys tries
diff --git a/.config/aspell/.aspell.en.pws b/.config/aspell/.aspell.en.pws
@@ -1,4 +1,4 @@
-personal_ws-1.1 en 115 
+personal_ws-1.1 en 117 
 runtime
 MathML
 functor
@@ -6,6 +6,7 @@ eigenspace
 semisimple
 intertwiner
 semipositive
+invariants
 cartesian
 SQLite
 subrepresentations
@@ -14,6 +15,7 @@ pytest
 maths
 webserver
 Escobar
+surjective
 monad
 CLI
 homomorphisms
@@ -50,8 +52,8 @@ REPL
 coproducts
 asciimath
 toc
-SymPy
 sympy
+SymPy
 evaluator's
 Ok
 Erlang
@@ -64,8 +66,8 @@ Abelian
 Shur's
 stdout
 svg
-english
 conjugacy
+english
 OCaml
 Readline
 matplotlib
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -82,14 +82,36 @@ function! LaTeXBegin(blockname)
   call feedkeys('O')
 endfunction
 
+" Enter insert mode inside the \emph macro
+function! LaTeXEmph()
+  execute "normal! i\\emph{} "
+  call feedkeys('hi')
+endfunction
+
 " Alias the LaTeXBegin function as a command
 au BufNewFile,BufRead *.tikz,*.tex command! -nargs=1 Begin call LaTeXBegin(<f-args>)
 
+" Alias the LaTeXEmph function as a command
+au BufNewFile,BufRead *.tikz,*.tex command! -nargs=0 Emph call LaTeXEmph()
+
 " Map BB to a call to the Begin command
 au BufNewFile,BufRead *.tikz,*.tex nnoremap BB :Begin 
 
+" Map EE to a call to the Emph command
+au BufNewFile,BufRead *.tikz,*.tex nnoremap EE :Emph<CR>
+
 " Highlight TiKz files as LaTeX
-au BufNewFile,BufRead *.tikz,*.tex        set ft=tex
+au BufNewFile,BufRead *.tikz,*.tex set ft=tex
+
+" Highlight \mathscr and \mathds as font styles
+au BufNewFile,BufRead *.tikz,*.tex syn match texTypeStyle "\\mathscr\>"
+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
+au BufNewFile,BufRead *.tikz,*.tex call TexNewMathZone("E","align",1)
 
 """ Language-specific stuff