From 1b8a534f5e24d1ff61dba61aea83108857e2a31a Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Mon, 19 Sep 2022 12:40:25 -0700 Subject: [PATCH] Fixed up some tex shortcuts, and added shell escape to tex --- nvim/.config/nvim/UltiSnips/tex.snippets | 8 ++++++-- nvim/.config/nvim/init.vim | 11 +++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/UltiSnips/tex.snippets b/nvim/.config/nvim/UltiSnips/tex.snippets index 7a66432..9629b45 100644 --- a/nvim/.config/nvim/UltiSnips/tex.snippets +++ b/nvim/.config/nvim/UltiSnips/tex.snippets @@ -104,11 +104,11 @@ snippet vector "Graph Vector" w endsnippet snippet xaxis "X Axis" w -\draw[<->] (-$1,0)--($1,0) node[anchor=west]{$x$};$0 +\draw[->] (0,0)--($1,0) node[anchor=west]{$x$};$0 endsnippet snippet yaxis "Y Axis" w -\draw[<->] (0,-$1)--(0,$1) node[anchor=west]{$y$};$0 +\draw[->] (0,0)--(0,$1) node[anchor=west]{$y$};$0 endsnippet snippet axes "Graph between two axes" @@ -131,3 +131,7 @@ endsnippet snippet brace "Curly brace between points" w \draw[decorate,decoration={brace}] ($1) -- ($2) node[]{$3};$0 endsnippet + +snippet link "Hyperlink" w +\href{$1}{$2}$0 +endsnippet diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 584f756..4e75dd4 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -94,6 +94,17 @@ let g:mkdp_preview_options = { \ 'disable_sync_scroll': 1, \ } +" LaTeX shell escape +let g:vimtex_compiler_latexmk = { + \ 'options' : [ + \ '-shell-escape', + \ '-verbose', + \ '-file-line-error', + \ '-synctex=1', + \ '-interaction=nonstopmode', + \ ], + \ } + " Run the Java formatter on save augroup autoformat_settings autocmd FileType java AutoFormatBuffer google-java-format