mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-09 09:49:09 +02:00
20 lines
559 B
Go
20 lines
559 B
Go
package ui
|
|
|
|
// Config contains TUI-specific configuration.
|
|
type Config struct {
|
|
ShowAllFiles bool
|
|
ShowLineNumbers bool
|
|
Gopath string `env:"GOPATH"`
|
|
HomeDir string `env:"HOME"`
|
|
GlamourMaxWidth uint
|
|
GlamourStyle string `env:"GLAMOUR_STYLE"`
|
|
EnableMouse bool
|
|
PreserveNewLines bool
|
|
|
|
// Working directory or file path
|
|
Path string
|
|
|
|
// For debugging the UI
|
|
HighPerformancePager bool `env:"GLOW_HIGH_PERFORMANCE_PAGER" envDefault:"true"`
|
|
GlamourEnabled bool `env:"GLOW_ENABLE_GLAMOUR" envDefault:"true"`
|
|
}
|