MCPcopy Index your code
hub / github.com/anomalyco/opencode / createDefaultOptions

Function createDefaultOptions

packages/session-ui/src/pierre/index.ts:153–171  ·  view source on GitHub ↗
(style: FileDiffOptions<T>["diffStyle"])

Source from the content-addressed store, hash-verified

151`
152
153export function createDefaultOptions<T>(style: FileDiffOptions<T>["diffStyle"]) {
154 return {
155 theme: "OpenCode",
156 themeType: "system",
157 disableLineNumbers: false,
158 overflow: "wrap",
159 diffStyle: style ?? "unified",
160 diffIndicators: "bars",
161 lineHoverHighlight: "both",
162 disableBackground: false,
163 expansionLineCount: 20,
164 hunkSeparators: "line-info-basic",
165 lineDiffType: style === "split" ? "word-alt" : "none",
166 maxLineDiffLength: 1000,
167 maxLineLengthForHighlighting: 1000,
168 disableFileHeader: true,
169 unsafeCSS,
170 } as const
171}
172
173export const styleVariables = {
174 "--diffs-font-family": "var(--font-family-mono)",

Callers 3

DiffSSRViewerFunction · 0.90
TextViewerFunction · 0.90
DiffViewerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected