aboutsummaryrefslogtreecommitdiff
path: root/themes/nvim
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-12-19 08:29:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-12-20 14:51:30 +0000
commitcf2b390f6e096e7a2ca93d4dece153eb13261a2e (patch)
tree6b888705d48f1b75c0a93e3eb2949bd343391911 /themes/nvim
parentshm: revert part of 299186a6547f6e038ee6f3822caf9a0fdfabceef (diff)
config: add [colors-dark] and [colors-light], replacing [colors] and [colors2]
The main reason for having two color sections is to be able to switch between dark and light. Thus, it's better if the section names reflect this, rather than the more generic 'colors' and 'colors2' (which was the dark one and which was the light one, now again?) When the second color section was added, we kept the original name, colors, to make sure we didn't break existing configurations, and third-party themes. However, in the long run, it's probably better to be specific in the section naming, to avoid confusion. So, add 'colors-dark', and 'colors-light'. Keep 'colors' and 'colors2' as aliases for now, but mark them as deprecated. They WILL be removed in a future release. Also rename the option values for initial-color-theme, from 1/2, to dark/light. Keep the old ones for now, marked as deprecated. Update all bundled themes to use the new names. In the light-only themes (i.e. themes that define a single, light, theme), use colors-light, and set initial-color-theme=light. Possible improvements: disable color switching if only one color section has been explicitly configured (todo: figure out how to handle the default color theme values...)
Diffstat (limited to 'themes/nvim')
-rw-r--r--themes/nvim4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/nvim b/themes/nvim
index bf629c0a..74dd1ac6 100644
--- a/themes/nvim
+++ b/themes/nvim
@@ -3,7 +3,7 @@
# Uses the dark color palette from the default Neovim color scheme
# See: https://github.com/neovim/neovim/blob/fb6c059dc55c8d594102937be4dd70f5ff51614a/src/nvim/highlight_group.c#L419
-[colors]
+[colors-dark]
cursor=14161b e0e2ea # NvimDarkGrey2 NvimLightGrey2
foreground=e0e2ea # NvimLightGrey2
background=14161b # NvimDarkGrey2
@@ -29,7 +29,7 @@ bright5=ffcaff # NvimLightMagenta
bright6=8cf8f7 # NvimLightCyan
bright7=eef1f8 # NvimLightGrey1
-[colors2]
+[colors-light]
cursor=e0e2ea 14161b # NvimLightGrey2 NvimDarkGrey2
foreground=14161b # NvimDarkGrey2
background=e0e2ea # NvimLightGrey2