on master help sign in
Add theme scopes for indent guides
924b4ebGokul Soumya
book/src/themes.md+1
@@ -228,6 +228,7 @@ These scopes are used for theming the editor interface.
228| `ui.text.info` | The key: command text in `ui.popup.info` boxes |
228| `ui.text.info` | The key: command text in `ui.popup.info` boxes |
229| `ui.virtual.ruler` | Ruler columns (see the [`editor.rulers` config][rulers-config])|
229| `ui.virtual.ruler` | Ruler columns (see the [`editor.rulers` config][rulers-config])|
230| `ui.virtual.whitespace` | Visible white-space characters |
230| `ui.virtual.whitespace` | Visible white-space characters |
231+| `ui.virtual.indent-guide` | Vertical indent width guides |
231| `ui.menu` | Code and command completion menus |
232| `ui.menu` | Code and command completion menus |
232| `ui.menu.selected` | Selected autocomplete item |
233| `ui.menu.selected` | Selected autocomplete item |
233| `ui.selection` | For selections in the editing area |
234| `ui.selection` | For selections in the editing area |
runtime/themes/onedark.toml+3
@@ -47,6 +47,8 @@ diagnostic = { modifiers = ["underlined"] }
47"error" = { fg = "red", modifiers = ["bold"] }
47"error" = { fg = "red", modifiers = ["bold"] }
48
48
49"ui.background" = { bg = "black" }
49"ui.background" = { bg = "black" }
50+"ui.virtual" = { fg = "faint-gray" }
51+"ui.virtual.indent-guide" = { fg = "faint-gray" }
50"ui.virtual.whitespace" = { fg = "light-gray" }
52"ui.virtual.whitespace" = { fg = "light-gray" }
51"ui.virtual.ruler" = { bg = "gray" }
53"ui.virtual.ruler" = { bg = "gray" }
52
54
@@ -85,5 +87,6 @@ white = "#ABB2BF"
85black = "#282C34"
87black = "#282C34"
86light-black = "#2C323C"
88light-black = "#2C323C"
87gray = "#3E4452"
89gray = "#3E4452"
90+faint-gray = "#3B4048"
88light-gray = "#5C6370"
91light-gray = "#5C6370"
89linenr = "#4B5263"
92linenr = "#4B5263"
theme.toml+2
@@ -56,6 +56,8 @@ label = "honey"
56"ui.text.focus" = { fg = "white" }
56"ui.text.focus" = { fg = "white" }
57"ui.virtual" = { fg = "comet" }
57"ui.virtual" = { fg = "comet" }
58
58
59+"ui.virtual.indent-guide" = { fg = "comet" }
60+
59"ui.selection" = { bg = "#540099" }
61"ui.selection" = { bg = "#540099" }
60"ui.selection.primary" = { bg = "#540099" }
62"ui.selection.primary" = { bg = "#540099" }
61# TODO: namespace ui.cursor as ui.selection.cursor?
63# TODO: namespace ui.cursor as ui.selection.cursor?