mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Fix overrides not being parsed correctly
This commit is contained in:
parent
29a896f9d8
commit
14b58ba015
3 changed files with 8 additions and 4 deletions
|
|
@ -144,10 +144,12 @@ func highlight_file(path string) (highlighted string, err error) {
|
|||
lexer = chroma.Coalesce(lexer)
|
||||
name := conf.Pygments_style
|
||||
const DEFAULT_LIGHT_THEME = "borland"
|
||||
var style *chroma.Style
|
||||
if name == "default" {
|
||||
DefaultStyle()
|
||||
style = DefaultStyle()
|
||||
} else {
|
||||
style = styles.Get(name)
|
||||
}
|
||||
style := styles.Get(name)
|
||||
if style == nil {
|
||||
if conf.Background.IsDark() && !conf.Foreground.IsDark() {
|
||||
style = styles.Get("monokai")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue