# ── Rosé Pine ──────────────────────────────────────────────────────────────
set default-bg "#191724"
set default-fg "#e0def4"
set statusbar-bg "#1f1d2e"
set statusbar-fg "#e0def4"
set statusbar-h-padding 10
set statusbar-v-padding 8
set inputbar-bg "#191724"
set inputbar-fg "#e0def4"
set notification-bg "#1f1d2e"
set notification-fg "#e0def4"
set notification-error-bg "#eb6f92"
set notification-error-fg "#191724"
set notification-warning-bg "#f6c177"
set notification-warning-fg "#191724"
set highlight-color rgba(246,193,119,0.35)
set highlight-active-color rgba(196,167,231,0.55)
set completion-bg "#26233a"
set completion-fg "#e0def4"
set completion-group-bg "#1f1d2e"
set completion-group-fg "#c4a7e7"
set completion-highlight-bg "#c4a7e7"
set completion-highlight-fg "#191724"
set index-bg "#1f1d2e"
set index-fg "#e0def4"
set index-active-bg "#c4a7e7"
set index-active-fg "#191724"
set render-loading true
set render-loading-bg "#191724"
set render-loading-fg "#e0def4"
# recolor is OFF so images and PDFs display with their true colors (a dark
# theme would otherwise invert them). Press `Ctrl+r` inside zathura to toggle.
set recolor false
set recolor-keephue true
set recolor-lightcolor "#191724"
set recolor-darkcolor "#e0def4"
# ── Behaviour ───────────────────────────────────────────────────────────────
set adjust-open "best-fit"
set selection-clipboard clipboard
set scroll-step 80
set guioptions ""
set window-title-basename true
# ── SyncTeX (LaTeX ↔ editor) ────────────────────────────────────────────────
# Ctrl+click anywhere in a compiled PDF jumps Neovim to the line that produced
# it. VimTeX passes its own -x when IT launches zathura, so this line is what
# makes inverse search work when you opened the PDF yourself.
#
# --headless + --server needs a running nvim: v:servername is always set, and
# VimTeX writes it into the PDF's synctex data at compile time. Requires the
# document to have been built with `tectonic --synctex` (plugins/latex.lua
# does that on every save).
set synctex true
set synctex-editor-command "nvim --headless -c \"VimtexInverseSearch %{line} '%{input}'\""
# Note: zathura here uses the poppler backend, which reads PDF/PS/DjVu/CBZ but
# not bare image files. Use `zimg IMAGE...` (in ~/.local/bin) to view images —
# it wraps them into a temporary PDF and opens this zathura.
#
# Books and comics go through `zbook` (also in ~/.local/bin), which keeps this
# poppler backend for PDFs and side-loads the MuPDF plugin from
# ~/.local/lib/zathura-books only when an EPUB/FB2/XPS/MOBI is opened:
#
# zbook book.epub EPUB & co. (calibre converts anything MuPDF can't)
# zbook comic.cbz comics ONE PANEL PER PAGE — Space walks the panels
# zbook --pages comic.cbz comics as whole pages instead
# zbook --rtl manga.cbz right-to-left panel order
#
# Panel mode leans on `adjust-open best-fit` below: each panel is its own page,
# so it is blown up to fill the window.