From a7c990f137029dd555dac3392ed6e0137c454adc Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 1 Sep 2022 14:47:17 -0400 Subject: add helix config --- config/helix/config.toml | 56 ++++++++++++++++++++++++++++++++++++++++++ config/helix/themes/doy.toml | 58 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 config/helix/config.toml create mode 100644 config/helix/themes/doy.toml (limited to 'config') diff --git a/config/helix/config.toml b/config/helix/config.toml new file mode 100644 index 0000000..a9f43dd --- /dev/null +++ b/config/helix/config.toml @@ -0,0 +1,56 @@ +theme = "doy" + +[editor] +gutters = ["diagnostics"] +auto-info = false + +[keys.normal] +tab = ":w" +"|" = ":q" + +"H" = "goto_previous_buffer" +"L" = "goto_next_buffer" +"C-d" = ":buffer-close" + +"$" = "goto_line_end" +")" = "goto_line_start" +"_" = "goto_first_nonwhitespace" +"G" = "goto_last_line" + +"ret" = "goto_definition" +"backspace" = "jump_backward" + +"D" = "kill_to_line_end" +"Y" = ["select_mode", "goto_line_end", "yank", "normal_mode", "flip_selections", "collapse_selection"] + +"esc" = "collapse_selection" + +"C-c" = ":config-reload" + +[keys.normal.";"] +"x" = "toggle_comments" + +"h" = "select_prev_sibling" +"j" = "shrink_selection" +"k" = "expand_selection" +"l" = "select_next_sibling" + +"|" = "shell_pipe" +"!" = "shell_insert_output" +"$" = "shell_keep_pipe" + +[keys.select] +"$" = "goto_line_end" +")" = "goto_line_start" +"_" = "goto_first_nonwhitespace" +"G" = "goto_last_line" + +[keys.select.";"] +"x" = "toggle_comments" + +"|" = "shell_pipe" +"!" = "shell_insert_output" +"$" = "shell_keep_pipe" + +[keys.select."g"] +"q" = ":reflow" diff --git a/config/helix/themes/doy.toml b/config/helix/themes/doy.toml new file mode 100644 index 0000000..1c5a1cf --- /dev/null +++ b/config/helix/themes/doy.toml @@ -0,0 +1,58 @@ +"ui.background" = { bg = "black" } +"ui.cursor" = { fg = "green", modifiers = ["reversed"] } +"ui.cursor.insert" = { fg = "white", modifiers = ["reversed"] } +"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.text" = { fg = "white" } +"ui.text.focus" = { fg = "yellow" } +"special" = { fg = "cyan" } + +"diagnostic.error" = { bg = "#330000" } +"diagnostic.warning" = { bg = "#333300" } +"diagnostic.hint" = { bg = "#003333" } +"diagnostic.info" = { bg = "#330033" } +"warning" = "yellow" +"error" = "red" +"info" = "white" +"hint" = "cyan" + +"type" = "green" +"constructor" = "light-cyan" +"constant" = "red" +"constant.character.escape" = "magenta" +"string" = "red" +"comment" = "light-black" +"comment.documentation" = "magenta" +"label" = "green" +"keyword" = "yellow" +"keyword.directive" = "magenta" +"function" = "light-cyan" +"function.macro" = "magenta" + +"diff.plus" = "green" +"diff.minus" = "red" +"diff.delta" = "yellow" + +[palette] +black = "#000000" +red = "#ed5f74" +green = "#1ea672" +yellow = "#d97917" +blue = "#688ef1" +magenta = "#c96ed0" +cyan = "#3a97d4" +white = "#e3e8ee" +light-black = "#697386" +light-red = "#fbb5b2" +light-green = "#85d996" +light-yellow = "#efc078" +light-blue = "#9fcdff" +light-magenta = "#f0b4e4" +light-cyan = "#7fd3ed" +light-white = "#ffffff" -- cgit v1.2.3-54-g00ecf