summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-12-01 11:44:51 -0500
committerJesse Luehrs <doy@tozt.net>2022-12-01 11:44:51 -0500
commit7fccd997055249660e63ea7c154ad0107280b9fb (patch)
tree7f9fec376d40f6324b5d1ca73c97f583fd4c8021 /config
parent842451ab86764158dae849ed1397aa2b69b63605 (diff)
downloadconf-7fccd997055249660e63ea7c154ad0107280b9fb.tar.gz
conf-7fccd997055249660e63ea7c154ad0107280b9fb.zip
more helix tweaks
Diffstat (limited to 'config')
-rw-r--r--config/helix/config.toml5
-rw-r--r--config/helix/languages.toml3
-rw-r--r--config/helix/themes/doy.toml30
3 files changed, 28 insertions, 10 deletions
diff --git a/config/helix/config.toml b/config/helix/config.toml
index a9f43dd..0811f37 100644
--- a/config/helix/config.toml
+++ b/config/helix/config.toml
@@ -3,6 +3,7 @@ theme = "doy"
[editor]
gutters = ["diagnostics"]
auto-info = false
+color-modes = true
[keys.normal]
tab = ":w"
@@ -15,7 +16,6 @@ tab = ":w"
"$" = "goto_line_end"
")" = "goto_line_start"
"_" = "goto_first_nonwhitespace"
-"G" = "goto_last_line"
"ret" = "goto_definition"
"backspace" = "jump_backward"
@@ -39,6 +39,9 @@ tab = ":w"
"!" = "shell_insert_output"
"$" = "shell_keep_pipe"
+[keys.normal.g]
+"G" = "goto_last_line"
+
[keys.select]
"$" = "goto_line_end"
")" = "goto_line_start"
diff --git a/config/helix/languages.toml b/config/helix/languages.toml
new file mode 100644
index 0000000..2e69b5b
--- /dev/null
+++ b/config/helix/languages.toml
@@ -0,0 +1,3 @@
+[[language]]
+name = "rust"
+config = { checkOnSave = { command = "clippy" } }
diff --git a/config/helix/themes/doy.toml b/config/helix/themes/doy.toml
index 1c5a1cf..3596e40 100644
--- a/config/helix/themes/doy.toml
+++ b/config/helix/themes/doy.toml
@@ -4,12 +4,16 @@
"ui.cursor.match" = { modifiers = ["underlined"] }
"ui.cursor.primary" = { fg = "light-green", modifiers = ["reversed"] }
"ui.cursor.select" = { fg = "green", modifiers = ["reversed"] }
-"ui.menu" = { fg = "white", bg = "#202020" }
-"ui.menu.selected" = { fg = "yellow", bg = "#202020" }
-"ui.popup" = { fg = "light-black" }
-"ui.selection" = { bg = "#3e4043" }
-"ui.statusline" = { fg = "light-green", bg = "#202020" }
+"ui.menu" = { fg = "white", bg = "dark-black" }
+"ui.menu.selected" = { fg = "yellow" }
+"ui.popup" = { bg = "dark-black" }
+"ui.selection" = { bg = "dark-white" }
+"ui.statusline" = { fg = "light-green", bg = "dark-magenta" }
+"ui.statusline.normal" = { fg = "black", bg = "light-yellow" }
+"ui.statusline.insert" = { fg = "black", bg = "light-cyan" }
+"ui.statusline.select" = { fg = "black", bg = "yellow" }
"ui.text" = { fg = "white" }
+"ui.text.info" = { fg = "white", bg = "red" }
"ui.text.focus" = { fg = "yellow" }
"special" = { fg = "cyan" }
@@ -17,10 +21,10 @@
"diagnostic.warning" = { bg = "#333300" }
"diagnostic.hint" = { bg = "#003333" }
"diagnostic.info" = { bg = "#330033" }
-"warning" = "yellow"
-"error" = "red"
-"info" = "white"
-"hint" = "cyan"
+"warning" = { fg = "yellow", bg = "dark-yellow" }
+"error" = { fg = "red", bg = "dark-red" }
+"info" = { fg = "white", bg = "dark-white" }
+"hint" = { fg = "cyan", bg = "dark-cyan" }
"type" = "green"
"constructor" = "light-cyan"
@@ -56,3 +60,11 @@ light-blue = "#9fcdff"
light-magenta = "#f0b4e4"
light-cyan = "#7fd3ed"
light-white = "#ffffff"
+dark-black = "#273141"
+dark-red = "#541e20"
+dark-green = "#003c04"
+dark-yellow = "#482900"
+dark-blue = "#00355c"
+dark-magenta = "#4e1d47"
+dark-cyan = "#00394f"
+dark-white = "#303030"