From b1f66684fd45c67f87c52fc1955edc8bd5ad98df Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Wed, 9 Oct 2024 19:13:17 +0200 Subject: [PATCH] Neovim: Enable -shell-escape for vimtex latexmk --- home/modules/neovim/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home/modules/neovim/default.nix b/home/modules/neovim/default.nix index 0e694114..13e2626d 100644 --- a/home/modules/neovim/default.nix +++ b/home/modules/neovim/default.nix @@ -828,6 +828,7 @@ in { markdown = ["vale"]; nix = ["statix"]; python = ["flake8"]; + tex = ["chktex"]; # rust = ["clippy"]; # Not supported, but integrated through rustaceanvim text = ["vale"]; }; @@ -1654,6 +1655,14 @@ in { init = '' function() vim.g.vimtex_view_method = "zathura" + vim.g.vimtex_compiler_latexmk = { + options = { + "-shell-escape", + "-file-line-error", + "-synctex=1", + "-interaction=nonstopmode", + }, + } end ''; };