tex.nvim is a neovim plugin to automatically compile latex files on save.
The plugin will compile the currently opened latex file using latexmk.
If the compilation is unsuccessful, a window will open showing the log of latexmk.
The error message can be closed by hitting 'q'.
By default the plugin compiles to a folder
called 'output' that is created in the same folder the edited file resides in.
Lazy:
return {
"eczovian/tex.nvim",
ft = 'tex', -- this is recommended
opts={}
}(Default configuration)
opts={
--- Directory to compile your latex file to
--- This can either be an absolute or relative path.
--- if you use a relative path, it will be relative to the directory the edited file is in.
output_dir = "./output",
--- List of patterns for latex files to ignore.
--- The patterns use the lua standard match dsl, for example "structure%a.tex" will match "structure.tex" and "structure-dev.tex".
--- for more information on the pattern language see this: https://www.lua.org/manual/5.4/manual.html#6.4.1
ignore_patters = {},
--- Keybind for closing the error log that opens upon unsuccessful compilation.
--- This can either be a singular key or a combination of keys for example '<C-q>' or 'qn'
error_log_close_keybind = "q",
}