From 15d194ce0982f270a56807b06572e9c55233bce6 Mon Sep 17 00:00:00 2001 From: Luc Sinet Date: Sat, 26 Jun 2021 20:18:14 +0200 Subject: Add Vimtex for Latex support (#512) * 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 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 --- lua/lv-which-key/init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lua/lv-which-key') diff --git a/lua/lv-which-key/init.lua b/lua/lv-which-key/init.lua index 6920c29c..2f60e0d5 100644 --- a/lua/lv-which-key/init.lua +++ b/lua/lv-which-key/init.lua @@ -184,6 +184,17 @@ local mappings = { } } +if O.extras then + mappings["L"] = { + name = "+Latex", + c = {"VimtexCompile", "Toggle Compilation Mode"}, + f = {"call vimtex#fzf#run()", "Fzf Find"}, + i = {"VimtexInfo", "Project Information"}, + s = {"VimtexStop", "Stop Project Compilation"}, + t = {"VimtexTocToggle", "Toggle Table Of Content"}, + v = {"VimtexView", "View PDF"} + } +end -- TODO come back and fix visual mappings -- local visualOpts = { -- mode = "v", -- Visual mode -- cgit v1.2.3