From 7fccd997055249660e63ea7c154ad0107280b9fb Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 1 Dec 2022 11:44:51 -0500 Subject: more helix tweaks --- config/helix/config.toml | 5 ++++- config/helix/languages.toml | 3 +++ config/helix/themes/doy.toml | 30 +++++++++++++++++++++--------- 3 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 config/helix/languages.toml (limited to 'config') 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" -- cgit v1.2.3-54-g00ecf