fix: allow config file to load showLineNumbers (#653)

This commit is contained in:
Prithvi Jethwa 2025-06-04 13:41:27 -04:00 committed by GitHub
commit bcd1296ce5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -209,6 +209,10 @@ pager: true
width: 80
# show all files, including hidden and ignored.
all: false
# show line numbers (TUI-mode only)
showLineNumbers: false
# preserve newlines in the output
preserveNewLines: false
```
## Feedback

View file

@ -170,6 +170,7 @@ func validateOptions(cmd *cobra.Command) error {
tui = viper.GetBool("tui")
showAllFiles = viper.GetBool("all")
preserveNewLines = viper.GetBool("preserveNewLines")
showLineNumbers = viper.GetBool("showLineNumbers")
if pager && tui {
return errors.New("cannot use both pager and tui")