diff options
| author | bh <qn+git@excalibur.computer> | 2025-11-12 23:57:20 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2025-11-12 23:57:20 +0800 |
| commit | cc5ca2e8c8fa3cf2e60321fdb0cb4ddb66551ff2 (patch) | |
| tree | f6173f63d1bd48710728817bd338838654ec60de /lua/config/vimtex.lua | |
Initial Commit
Diffstat (limited to 'lua/config/vimtex.lua')
| -rw-r--r-- | lua/config/vimtex.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/config/vimtex.lua b/lua/config/vimtex.lua new file mode 100644 index 0000000..24679bf --- /dev/null +++ b/lua/config/vimtex.lua @@ -0,0 +1,30 @@ +return function() + -- Use Zathura as the PDF viewer + vim.g.vimtex_view_method = "zathura" + + -- Compile using latexmk automatically + vim.g.vimtex_compiler_method = "latexmk" + vim.g.vimtex_compiler_latexmk = { + build_dir = "build", -- Keep files in a separate folder + callback = 1, + continuous = 1, -- Automatically recompile on save + executable = "latexmk", + options = { + "-pdf", + "-interaction=nonstopmode", + "-synctex=1", + }, + } + + -- Optional: disable conceal for clearer LaTeX text + vim.g.vimtex_syntax_conceal = { + accents = 0, + ligatures = 0, + cites = 0, + fancy = 0, + spacing = 0, + greek = 0, + math_delimiters = 0, + math_super_sub = 0, + } +end |
