Skip to content

yaml unmarshal error for example paging config #4973

@TheSast

Description

@TheSast

Describe the bug

There is a yaml unmarshal error for the lazygit configuration shown in docs/Custom_Pagers.md

To Reproduce

Steps to reproduce the behavior:

  1. Edit the lazygit config file (open XDG_CONFIG_HOME/lazygit/config.yml or lazygit and press e in the status panel) to contain:
git:
  paging:
    - pager: delta --dark --paging=never
    - pager: ydiff -p cat -s --wrap --width={{columnWidth}}
      colorArg: never
    - externalDiffCommand: difft --color=always
  1. Run lazygit

Expected behavior

Multiple pagers to be available in a working lazygit isntance which can be cycled via | as documented.

Version info:

This issue happens in the current lazygit nix package for nix unstable.
commit=, build date=, build source=nix, version=0.53.0, os=linux, arch=amd64, git version=2.50.1

Stderr Output

2025/10/17 19:27:33 The config at `/home/user/.config/etc/home/lazygit/config.yml` couldn't be parsed, please inspect it before opening up an issue.
yaml: unmarshal errors:
  line 3: cannot unmarshal !!seq into config.PagingConfig

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions