config.nvim

NeoVim config
git clone git://popovic.xyz/nvim.config.git/
Log | Files | Refs

vimtex.lua (762B)


      1 ---@diagnostic disable: undefined-global
      2 return {
      3   "lervag/vimtex",
      4   lazy = false,
      5   init = function()
      6     vim.opt.conceallevel = 2
      7     vim.g.vimtex_view_method = "zathura"
      8     vim.g.latex_to_unicode_auto = 1
      9     vim.g.tex_flavour = "latex"
     10     vim.g.vimtex_compiler_latexmk = {
     11       executable = "latexmk",
     12       options = {
     13         "-synctex=0",
     14         "-verbose",
     15         "-file-line-error",
     16         "-interaction=nonstopmode",
     17         "-shell-escape",
     18         "-synctex=1"
     19       },
     20       out_dir = "build",
     21       aux_dir = "build"
     22     }
     23     vim.g.vimtex_quickfix_mode = 0
     24     vim.g.tex_conceal = "abdmg"
     25 
     26     vim.keymap.set('n', '<leader>tp', "<Esc>:w<CR>:VimtexCompile<CR>")
     27     vim.keymap.set('n', '<leader>te', "<Esc>:w<CR>:VimtexErrors<CR>")
     28   end
     29 }