Commit: 1de4a4afafe4ade2921448ec8adf11fa542e7d03
Parent: 94edde4abb4ba1dad4a08b9c57532acbc33300cc
Author: Randy Palamar
Date: Sat, 4 Jun 2022 14:17:57 -0600
vis: update build_tex() and set spellcheck lang
Diffstat:
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/.config/vis/build.lua b/.config/vis/build.lua
@@ -5,7 +5,13 @@ function build_files(win)
function build_tex(f)
-- build pdf
- vis:command(string.format('!lualatex %s >/dev/null', f))
+ vis:command(string.format('!pdflatex %s.tex >/dev/null', f))
+ -- update refrences
+ vis:command(string.format('!biber %s >/dev/null', f))
+ -- update glossary
+ -- vis:command(string.format('!makeglossaries %s >/dev/null', f))
+ -- build pdf
+ vis:command(string.format('!pdflatex %s.tex >/dev/null', f))
-- reload pdf (zathura does this automatically)
-- vis:command('!pkill -HUP mupdf')
@@ -28,7 +34,7 @@ function build_files(win)
if method == nil then error() return end
vis:info(string.format('building \'%s\'', f))
- method(f)
+ method(string.sub(f, 0, i - 1))
end
vis:map(vis.modes.NORMAL, ',c', build)
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua
@@ -2,7 +2,8 @@ require('vis')
require('build')
require('macros')
-require('plugins/vis-spellcheck')
+spell = require('plugins/vis-spellcheck')
+spell.lang = "en_US"
vis.events.subscribe(vis.events.INIT, function()
vis:command("set theme dark")