Skip to content

Commit

Permalink
Ensure that matching pair highlights are distinct
Browse files Browse the repository at this point in the history
With `gruvbox` themes, `{ modifiers = ["reversed"] }` makes it
impossible to identify which pair the cursor is on. `ui.cursor.primary`
is set to be the same as `ui.cursor.match`. Using `{ bg = "bg2" }` for
`ui.cursor.match` makes sure that it is possible to find out the current
cursor position.
  • Loading branch information
crodjer committed Mar 11, 2022
1 parent 98851d1 commit 3756293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/themes/gruvbox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"ui.text.focus" = { fg = "fg1" }
"ui.selection" = { bg = "bg3", modifiers = ["reversed"] }
"ui.cursor.primary" = { modifiers = ["reversed"] }
"ui.cursor.match" = { modifiers = ["reversed"] }
"ui.cursor.match" = { bg = "bg2" }
"ui.menu" = { fg = "fg1", bg = "bg2" }
"ui.menu.selected" = { fg = "bg2", bg = "blue1", modifiers = ["bold"] }

Expand Down
2 changes: 1 addition & 1 deletion runtime/themes/gruvbox_light.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"ui.text.focus" = { fg = "fg1" }
"ui.selection" = { bg = "bg3", modifiers = ["reversed"] }
"ui.cursor.primary" = { modifiers = ["reversed"] }
"ui.cursor.match" = { modifiers = ["reversed"] }
"ui.cursor.match" = { bg = "bg2" }
"ui.menu" = { fg = "fg1", bg = "bg2" }
"ui.menu.selected" = { fg = "bg2", bg = "blue1", modifiers = ["bold"] }

Expand Down

0 comments on commit 3756293

Please sign in to comment.