summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/latex.lua
blob: 8582c6f6383d14482ad2887ffb94d3c9087d9d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
return {
    {
        "lervag/vimtex",
        ft = { 'tex', 'latex', 'plaintext' },
        init = function()
            vim.g.vimtex_view_method = 'zathura'
            vim.g.vimtex_quickfix_mode = 0
            vim.g.vimtex_quickfix_ignore_filters = {"Underfull", "Overfull"}
            vim.g.vimtex_compiler_latexmk = {
                options = {
                    "-pdf", '-shell-escape', '-verbose', '-file-line-error', '-synctex=1', '-interaction=nonstopmode'
                }
            }
        end,
    },
}