/*lua*/''
  picker = {
    ui_select = true,
    layouts = {
      -- custom presets
      my_vertical = {
        layout = {
          backdrop = false,
          box = "vertical",
          border = true,
          title = "{title} {live} {flags}",
          title_pos = "center",
          { win = "preview", title = "{preview}", height = 0.6, border = "bottom" },
          -- statuscolumn: show ">" on cursor line as current-item indicator
          { win = "list", border = "none", wo = { statuscolumn = "%#SnacksPickerListCursorLine#%{v:relnum==0?\">\":\" \"}%*" } },
          { win = "input", height = 1, border = "top" },
        },
        reverse = true,
        fullscreen = true,
      },
    },
    -- Global Config
    -- Keep the global layout behind a named preset instead of defining the
    -- full layout table here. Per-source layouts (e.g. ui.select below) are
    -- deep-merged with the global layout; if the global value contains layout
    -- children directly, source presets inherit those children and may not
    -- resolve cleanly. A preset reference lets sources override with their own
    -- preset, such as the built-in "select" layout.
    layout = { preset = "my_vertical" },
    -- Per-source Config
    sources = {
      -- Config of ui.select
      select = {
        layout = { preset = "select" },
      },
    },
  },
''