summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/cfg/vimtex/init.lua
blob: 11ed68bc4f6977300379a1c708ed444b5488cbb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
vim.g.vimtex_compiler_method = "latexmk"
vim.g.vimtex_view_method = "zathura"
vim.g.vimtex_fold_enabled = 0

-- Compile on initialization, cleanup on quit
vim.api.nvim_exec(
  [[
        augroup vimtex_event_1
            au!
            au User VimtexEventQuit     call vimtex#compiler#clean(0)
            au User VimtexEventInitPost call vimtex#compiler#compile()
        augroup END
    ]],
  false
)