lervag / vimtex

VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.
MIT License
5.58k stars 393 forks source link

Well-integrated support for ClutTeX compiler #2116

Open paniash opened 3 years ago

paniash commented 3 years ago

Is your feature request related to a problem? Please describe it.

It would be a nice addition to add integrated support for ClutTeX instead of relying on the generic compiler usage.

Describe the solution you'd like

Similar to support for latexmk, ClutTeX could be added as an option for specifying the compiler backend.

ClutTeX is primarily written in lua and now that neovim supports it, I think it would be well integrated. A major selling point of ClutTeX is that is does everything latexmk does (AFAIK) and doesn't clutter the current directory (which as opposed to latexmk has to be cleaned up via latexmk -c).

lervag commented 3 years ago

I don't think it should be too hard, but it will take some time and I consider it a low priority request. I will not mind a PR, if anyone should have time and interest to work on it.

jliptrap commented 1 year ago

latexmk doesn't have to clutter the current directory, here's a line of vimtex config to put all that clutter in a build subdir:

let g:vimtex_compiler_latexmk = {'build_dir' : 'build'}
GersiD commented 1 year ago

Equivalent Lua for anyone wondering

vim.g.vimtex_compiler_latexmk = { build_dir = "build" }