diff options
Diffstat (limited to '.config/nvim/lua/cfg/vimtex/init.lua')
-rw-r--r-- | .config/nvim/lua/cfg/vimtex/init.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/nvim/lua/cfg/vimtex/init.lua b/.config/nvim/lua/cfg/vimtex/init.lua new file mode 100644 index 0000000..11ed68b --- /dev/null +++ b/.config/nvim/lua/cfg/vimtex/init.lua @@ -0,0 +1,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 +) |