git-coco 0.58.1 → 0.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -31,6 +31,21 @@ type LogInkThemeColors = {
31
31
  selectionForeground?: string;
32
32
  success?: string;
33
33
  warning?: string;
34
+ /**
35
+ * Optional syntax-highlight token colors for the diff view (#1117
36
+ * follow-up). All optional: when a slot is unset the resolver
37
+ * (`resolveSyntaxColor`) falls back to a sensible ANSI default, so
38
+ * themes get highlighting for free and only need to define these to
39
+ * customize. `noColor` themes skip syntax coloring entirely.
40
+ */
41
+ syntaxKeyword?: string;
42
+ syntaxString?: string;
43
+ syntaxComment?: string;
44
+ syntaxNumber?: string;
45
+ syntaxType?: string;
46
+ syntaxFunction?: string;
47
+ syntaxConstant?: string;
48
+ syntaxProperty?: string;
34
49
  };
35
50
  type LogInkThemeConfig = {
36
51
  ascii?: boolean;
@@ -356,6 +371,17 @@ type BaseConfig = {
356
371
  * @default true
357
372
  */
358
373
  dateBucketing?: boolean;
374
+ /**
375
+ * Syntax-highlight code in the diff view using tree-sitter
376
+ * (TypeScript / TSX / JavaScript today). On by default. Highlighting
377
+ * degrades gracefully — unsupported languages, non-ASCII lines, and
378
+ * parse failures fall back to the plain add/remove coloring — so the
379
+ * only reason to disable it is preference or a very low-color
380
+ * terminal. Set to `false` to opt out.
381
+ *
382
+ * @default true
383
+ */
384
+ syntaxHighlight?: boolean;
359
385
  };
360
386
  /**
361
387
  * Multi-repo workspace surface settings (`coco workspace`).