mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 11:05:08 +02:00
15d194ce09
* Add vimtex plugin Vimtex provides a full integration for latex files, see: https://github.com/lervag/vimtex. Zathura is used as default pdf viewer as it allows live reloading. * Provide the <leader>L shortcut for Latex operations. * Move vimtex into the extra plugins section Add a short comment above extra plugins to introduce their functionality * Only define whcihKey mapping for Vimtex if O.extras is true Co-authored-by: Christian Chiarulli <chris.machine@pm.me>
15 lines
400 B
Lua
15 lines
400 B
Lua
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
|
|
)
|
|
|