changeset 824:1b779efc2b42

feat: template helix config to set the colorscheme
author zegervdv <zegervdv@me.com>
date Thu, 21 Dec 2023 11:47:20 +0100
parents 2e86aa5360eb
children 6c169d906c7d
files dot_config/helix/config.toml dot_config/helix/config.toml.tmpl
diffstat 2 files changed, 29 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/dot_config/helix/config.toml	Thu Dec 21 10:43:19 2023 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-theme = "tutticolori"
-
-[editor]
-line-number = "relative"
-cursorline = true
-
-[editor.cursor-shape]
-insert = "bar"
-normal = "block"
-select = "underline"
-
-[editor.indent-guides]
-render = true
-skip-levels = 1
-
-[keys.insert]
-C-f = "move_char_right"
-
-[keys.normal."space"]
-o = "file_picker_in_current_buffer_directory"
-
-[keys.normal.g]
-l = ["collapse_selection", "extend_to_line_end"]
-h = ["collapse_selection", "extend_to_line_start"]
-s = ["collapse_selection", "select_mode", "goto_first_nonwhitespace", "exit_select_mode"]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dot_config/helix/config.toml.tmpl	Thu Dec 21 11:47:20 2023 +0100
@@ -0,0 +1,29 @@
+{{ if .dark -}}
+theme = "catppuccin_mocha"
+{{ else -}}
+theme = "tutticolori"
+{{ end }}
+
+[editor]
+line-number = "relative"
+cursorline = true
+
+[editor.cursor-shape]
+insert = "bar"
+normal = "block"
+select = "underline"
+
+[editor.indent-guides]
+render = true
+skip-levels = 1
+
+[keys.insert]
+C-f = "move_char_right"
+
+[keys.normal."space"]
+o = "file_picker_in_current_buffer_directory"
+
+[keys.normal.g]
+l = ["collapse_selection", "extend_to_line_end"]
+h = ["collapse_selection", "extend_to_line_start"]
+s = ["collapse_selection", "select_mode", "goto_first_nonwhitespace", "exit_select_mode"]