diff options
| author | filip <“filip.rabiega@gmail.com”> | 2026-02-04 16:34:45 +0100 |
|---|---|---|
| committer | filip <“filip.rabiega@gmail.com”> | 2026-02-04 16:34:45 +0100 |
| commit | 7a7a8ace1dacfff121ce90110c7b5c8635d178c3 (patch) | |
| tree | a90d1abf42f5b4ea8917e57a02a482ed32a4fae8 /tex.lua | |
| download | lazy-plugins-7a7a8ace1dacfff121ce90110c7b5c8635d178c3.tar.gz lazy-plugins-7a7a8ace1dacfff121ce90110c7b5c8635d178c3.tar.bz2 lazy-plugins-7a7a8ace1dacfff121ce90110c7b5c8635d178c3.zip | |
plugin dump
Diffstat (limited to 'tex.lua')
| -rw-r--r-- | tex.lua | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +return { + { + "lervag/vimtex", + ft = { "tex", "bib", "latex" }, -- lazy-load on LaTeX files + config = function() + -- General vimtex settings + vim.g.vimtex_view_method = "zathura" -- PDF viewer + vim.g.vimtex_compiler_method = "latexmk" -- compiler + vim.g.vimtex_quickfix_mode = 0 -- disable quickfix + vim.g.vimtex_compiler_latexmk = { + options = { + "-pdf", + "-interaction=nonstopmode", + "-synctex=1", + }, + } + + -- Optional: F5 for compiling + vim.api.nvim_set_keymap("n", "<F5>", ":VimtexCompile<CR>", { noremap = true, silent = true }) + end, + }, +} |
