Skip to content

Commit 89eb70c

Browse files
committed
Ensure that matching pair highlights are distinct
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.
1 parent 98851d1 commit 89eb70c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

runtime/themes/gruvbox.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"ui.text.focus" = { fg = "fg1" }
5151
"ui.selection" = { bg = "bg3", modifiers = ["reversed"] }
5252
"ui.cursor.primary" = { modifiers = ["reversed"] }
53-
"ui.cursor.match" = { modifiers = ["reversed"] }
53+
"ui.cursor.match" = { bg = "bg2" }
5454
"ui.menu" = { fg = "fg1", bg = "bg2" }
5555
"ui.menu.selected" = { fg = "bg2", bg = "blue1", modifiers = ["bold"] }
5656

runtime/themes/gruvbox_light.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"ui.text.focus" = { fg = "fg1" }
5252
"ui.selection" = { bg = "bg3", modifiers = ["reversed"] }
5353
"ui.cursor.primary" = { modifiers = ["reversed"] }
54-
"ui.cursor.match" = { modifiers = ["reversed"] }
54+
"ui.cursor.match" = { bg = "bg2" }
5555
"ui.menu" = { fg = "fg1", bg = "bg2" }
5656
"ui.menu.selected" = { fg = "bg2", bg = "blue1", modifiers = ["bold"] }
5757

0 commit comments

Comments
 (0)