LunarVim/lua/lv-vimtex/init.lua

26 lines
799 B
Lua
Raw Normal View History

2021-07-05 03:14:01 +02:00
vim.g.vimtex_compiler_method = "latexmk"
vim.g.vimtex_view_method = "zathura"
vim.g.vimtex_fold_enabled = 0
2021-07-08 03:57:36 +02:00
O.user_which_key["L"] = {
name = "+Latex",
c = { "<cmd>VimtexCompile<cr>", "Toggle Compilation Mode" },
f = { "<cmd>call vimtex#fzf#run()<cr>", "Fzf Find" },
i = { "<cmd>VimtexInfo<cr>", "Project Information" },
s = { "<cmd>VimtexStop<cr>", "Stop Project Compilation" },
t = { "<cmd>VimtexTocToggle<cr>", "Toggle Table Of Content" },
v = { "<cmd>VimtexView<cr>", "View PDF" },
}
-- Compile on initialization, cleanup on quit
vim.api.nvim_exec(
2021-07-05 03:14:01 +02:00
[[
augroup vimtex_event_1
au!
au User VimtexEventQuit call vimtex#compiler#clean(0)
au User VimtexEventInitPost call vimtex#compiler#compile()
augroup END
2021-07-05 03:14:01 +02:00
]],
false
)