diff options
| author | Luc Sinet <[email protected]> | 2021-06-26 20:18:14 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-26 14:18:14 -0400 | 
| commit | 15d194ce0982f270a56807b06572e9c55233bce6 (patch) | |
| tree | 6f345debf8327e7f57622007d621919e7eb132d1 /lua/lv-which-key/init.lua | |
| parent | 1c869402c1413341fead39d5aa3688b25cffe4f1 (diff) | |
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 <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 <[email protected]>
Diffstat (limited to 'lua/lv-which-key/init.lua')
| -rw-r--r-- | lua/lv-which-key/init.lua | 11 | 
1 files changed, 11 insertions, 0 deletions
| 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 = {"<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"} +    } +end  -- TODO come back and fix visual mappings  -- local visualOpts = {  --     mode = "v", -- Visual mode | 
