lervag / vimtex

VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.
MIT License
5.56k stars 391 forks source link

Removing \includeonly from g:vimtex_include_indicators defaults #3044

Closed AsbjornPreuss closed 20 hours ago

AsbjornPreuss commented 2 days ago

Description

As suggested in comments of #2519 \includeonly is does not actually include any files in the document, but only defines which files of actual \includes, that are to be included in the compilation. Having includeonly in g:vimtex_include_indicators results in files and TODOs to be shown twice in the vimtex-toc. image

Steps to reproduce

  1. Change minimal.vim to point to installation of vimtex
  2. nvim -u minimal.vim minimal.tex
  3. Open vimtex toc (\<leader>lt) minimal.zip

Expected behavior

No response

Actual behavior

No response

Do you use a latexmkrc file?

No

VimtexInfo

System info:
  OS: Ubuntu 20.04.6 LTS
  Vim version: NVIM v0.10.0-dev
  Has clientserver: true
  Servername: /run/user/1001/nvim.9934.0

VimTeX project: minimal
  base: minimal.tex
  root: /tmp/issue
  tex: /tmp/issue/minimal.tex
  main parser: current file verified
  document class: article
  source files:
    minimal.tex
    b.tex
    c.tex
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: General
  qf method: LaTeX logfile
lervag commented 20 hours ago

This is solved by #3044.