This commit is contained in:
Kovid Goyal 2023-03-23 13:19:16 +05:30
parent e774deaef1
commit 3236a42cb7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -164,7 +164,6 @@ func highlight_file(path string) (highlighted string, err error) {
} }
lexer = chroma.Coalesce(lexer) lexer = chroma.Coalesce(lexer)
name := conf.Pygments_style name := conf.Pygments_style
const DEFAULT_LIGHT_THEME = "borland"
var style *chroma.Style var style *chroma.Style
if name == "default" { if name == "default" {
style = DefaultStyle() style = DefaultStyle()
@ -178,7 +177,7 @@ func highlight_file(path string) (highlighted string, err error) {
style = styles.Get("github-dark") style = styles.Get("github-dark")
} }
} else { } else {
style = styles.Get(DEFAULT_LIGHT_THEME) style = DefaultStyle()
} }
if style == nil { if style == nil {
style = styles.Fallback style = styles.Fallback