Skip to content

PDF Previewer keeps hogging Window Focus when executing texlab.build #12547

@NicolasSchuler

Description

@NicolasSchuler

Hi,

I'm currently struggling to set up the previewer for my LaTex PDFs.
On Neovim, when I save my file, it automatically builds the PDF, and the terminal window keeps the focus. On Helix, however, my PDF viewer grabs the window focus (which is annoying because I need to switch focus again).
This is my languages.toml:

[language-server.texlab.config.texlab.chktex]
onOpenAndSave = true
onEdit = true

[language-server.texlab.config.texlab.forwardSearch]
executable = "zathura"
args = [ "--synctex-forward", "%l:%c:%f", "%p" ]

[language-server.texlab.config.texlab.build]
forwardSearchAfter = true
onSave = true

executable = "latexmk"
 args = [
  "-pdf",
  "-interaction=nonstopmode",
  "-synctex=1",
  "-shell-escape",
  "%f"
  ]

[language-server.harper-ls]
command = "harper-ls"
args = ["--stdio"]

Platform
Linux (EndavourOS)

Terminal Emulator
kitty 0.38.1

Installation Method
pacman

Helix Version
helix 25.1

I would appreciate any help. Thank you very much in advance.

Bests
Nicolas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions