local g={"\108\101\114\118\097\103\047\118\105\109\116\101\120",ft="\116\101\120",config=function()local g=vim.g g.tex_flavor="\108\097\116\101\120"g.vimtex_view_method="\115\107\105\109"g.vimtex_view_skim_sync=1 g.vimtex_view_skim_activate=1 g.vimtex_compiler_method="\116\101\099\116\111\110\105\099"g.vimtex_mappings_enabled=false g.vimtex_quickfix_mode=0 g.vimtex_toc_config={split_pos="\114\105\103\104\116\098\101\108\111\119";split_width=20;show_help=0}g.vimtex_quickfix_ignore_filters={"\067\111\109\109\097\110\100 \116\101\114\109\105\110\097\116\101\100 \119\105\116\104 \115\112\097\099\101","\076\097\084\101\088 \070\111\110\116 \087\097\114\110\105\110\103\058 \070\111\110\116 \115\104\097\112\101";"\080\097\099\107\097\103\101 \099\097\112\116\105\111\110 \087\097\114\110\105\110\103\058 \084\104\101 \111\112\116\105\111\110";"\085\110\100\101\114\102\117\108\108 \092\092\104\098\111\120 \040\098\097\100\110\101\115\115 \091\048-\057\093\042\041 \105\110";"\080\097\099\107\097\103\101 \101\110\117\109\105\116\101\109 \087\097\114\110\105\110\103\058 \078\101\103\097\116\105\118\101 \108\097\098\101\108\119\105\100\116\104","\079\118\101\114\102\117\108\108 \092\092\104\098\111\120 \040\091\048-\057\093\042\046\091\048-\057\093\042\112\116 \116\111\111 \119\105\100\101\041 \105\110";"\080\097\099\107\097\103\101 \099\097\112\116\105\111\110 \087\097\114\110\105\110\103\058 \085\110\117\115\101\100 \092\092\099\097\112\116\105\111\110\115\101\116\117\112","\080\097\099\107\097\103\101 \116\121\112\101\097\114\101\097 \087\097\114\110\105\110\103\058 \066\097\100 \116\121\112\101 \097\114\101\097 \115\101\116\116\105\110\103\115\033","\080\097\099\107\097\103\101 \102\097\110\099\121\104\100\114 \087\097\114\110\105\110\103\058 \092\092\104\101\097\100\104\101\105\103\104\116 \105\115 \116\111\111 \115\109\097\108\108";"\085\110\100\101\114\102\117\108\108 \092\092\104\098\111\120 \040\098\097\100\110\101\115\115 \091\048-\057\093\042\041 \105\110 \112\097\114\097\103\114\097\112\104 \097\116 \108\105\110\101\115";"\080\097\099\107\097\103\101 \104\121\112\101\114\114\101\102 \087\097\114\110\105\110\103\058 \084\111\107\101\110 \110\111\116 \097\108\108\111\119\101\100 \105\110 \097 \080\068\070 \115\116\114\105\110\103";"\079\118\101\114\102\117\108\108 \092\092\104\098\111\120 \040\091\048-\057\093\042\046\091\048-\057\093\042\112\116 \116\111\111 \119\105\100\101\041 \105\110 \112\097\114\097\103\114\097\112\104 \097\116 \108\105\110\101\115"}end}return g
-- Latex
-- NOTE: it depends on skim and tectonic tools
local M = {
  'lervag/vimtex',
  ft = 'tex',
  config = function()
    local g = vim.g
    g.tex_flavor = 'latex'
    g.vimtex_view_method = 'skim'
    g.vimtex_view_skim_sync = 1
    g.vimtex_view_skim_activate = 1
    g.vimtex_compiler_method = 'tectonic'
    g.vimtex_mappings_enabled = false
    -- Do not auto open quickfix on compile errors
    g.vimtex_quickfix_mode = 0
    -- vimtex toc options
    g.vimtex_toc_config = {
      split_pos = 'rightbelow',
      split_width = 20,
      show_help = 0,
    }
    -- Latex warnings to ignore
    g.vimtex_quickfix_ignore_filters = {
      'Command terminated with space',
      'LaTeX Font Warning: Font shape',
      'Package caption Warning: The option',
      [[Underfull \\hbox (badness [0-9]*) in]],
      'Package enumitem Warning: Negative labelwidth',
      [[Overfull \\hbox ([0-9]*.[0-9]*pt too wide) in]],
      [[Package caption Warning: Unused \\captionsetup]],
      'Package typearea Warning: Bad type area settings!',
      [[Package fancyhdr Warning: \\headheight is too small]],
      [[Underfull \\hbox (badness [0-9]*) in paragraph at lines]],
      'Package hyperref Warning: Token not allowed in a PDF string',
      [[Overfull \\hbox ([0-9]*.[0-9]*pt too wide) in paragraph at lines]],
    }
  end,
}

return M
