Skip to content

Add g:vimtex_view_sioyek_options to allow --reuse-window #2621

@hakonharnes

Description

@hakonharnes

Relevant issue: #2468.

Problem description

I use the subfiles latex package to sub-compile latex files (by toggling VimtexToggleMain) to reduce compilation time. At the moment, a new sioyek window is opened for each file that is compiled. I'd like to have one sioyek window that automatically opens the compiled files. This is possible using the --reuse-window option in sioyek (similar to the now deprecated --reuse-instance option).

As issue #2468 suggests, this is possible by setting should_launch_new_instance 0 in the sioyek configuration file. However, I don't want to always have this option enabled, since I often do want sioyek to open multiple windows in other situations. Therefore, I need to pass --reuse-window as a command line flag when using vimtex.

Proposed solution

As suggested in #2468, add a g:vimtex_view_sioyek_options.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions