aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGokul Soumya2022-04-02 11:10:13 +0000
committerBlaž Hrastnik2022-06-21 16:43:25 +0000
commit924b4ebb39df71d8499e7d38015c2423a89a3e49 (patch)
tree1ce345566c00e7f047c6f5a55a07837af64545a3
parent8c4c923e803fe5c0d4da4dcc3223c0fc8001bd7a (diff)
Add theme scopes for indent guides
-rw-r--r--book/src/themes.md1
-rw-r--r--runtime/themes/onedark.toml3
-rw-r--r--theme.toml2
3 files changed, 6 insertions, 0 deletions
diff --git a/book/src/themes.md b/book/src/themes.md
index 4c0eda22..57a8d5d1 100644
--- a/book/src/themes.md
+++ b/book/src/themes.md
@@ -228,6 +228,7 @@ These scopes are used for theming the editor interface.
| `ui.text.info` | The key: command text in `ui.popup.info` boxes |
| `ui.virtual.ruler` | Ruler columns (see the [`editor.rulers` config][rulers-config])|
| `ui.virtual.whitespace` | Visible white-space characters |
+| `ui.virtual.indent-guide` | Vertical indent width guides |
| `ui.menu` | Code and command completion menus |
| `ui.menu.selected` | Selected autocomplete item |
| `ui.selection` | For selections in the editing area |
diff --git a/runtime/themes/onedark.toml b/runtime/themes/onedark.toml
index 280f6914..d0cbb949 100644
--- a/runtime/themes/onedark.toml
+++ b/runtime/themes/onedark.toml
@@ -47,6 +47,8 @@ diagnostic = { modifiers = ["underlined"] }
"error" = { fg = "red", modifiers = ["bold"] }
"ui.background" = { bg = "black" }
+"ui.virtual" = { fg = "faint-gray" }
+"ui.virtual.indent-guide" = { fg = "faint-gray" }
"ui.virtual.whitespace" = { fg = "light-gray" }
"ui.virtual.ruler" = { bg = "gray" }
@@ -85,5 +87,6 @@ white = "#ABB2BF"
black = "#282C34"
light-black = "#2C323C"
gray = "#3E4452"
+faint-gray = "#3B4048"
light-gray = "#5C6370"
linenr = "#4B5263"
diff --git a/theme.toml b/theme.toml
index 7a518b2f..8e550f92 100644
--- a/theme.toml
+++ b/theme.toml
@@ -56,6 +56,8 @@ label = "honey"
"ui.text.focus" = { fg = "white" }
"ui.virtual" = { fg = "comet" }
+"ui.virtual.indent-guide" = { fg = "comet" }
+
"ui.selection" = { bg = "#540099" }
"ui.selection.primary" = { bg = "#540099" }
# TODO: namespace ui.cursor as ui.selection.cursor?