config

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ViewMode        ViewModeType
	ShowWhitespace  bool
	ShowLineNumbers bool
	TabWidth        int
	WordLevelDiff   bool
}

func DefaultConfig

func DefaultConfig() Config

func LoadConfig

func LoadConfig() Config

func (Config) ToRenderOptions

func (c Config) ToRenderOptions() RenderOptions

type RenderOptions

type RenderOptions struct {
	ShowWhitespace  bool
	ShowLineNumbers bool
	TabWidth        int
	WordLevelDiff   bool
}

type ViewModeType

type ViewModeType string
const (
	ViewModeUnified    ViewModeType = "unified"
	ViewModeSideBySide ViewModeType = "side-by-side"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL