From 8904c3c38aaaae89c6c24e06695e4e3ca521f838 Mon Sep 17 00:00:00 2001 From: Lukas Wurzinger Date: Wed, 4 Dec 2024 17:26:14 +0000 Subject: [PATCH] helix --- helix/.config/helix/config.toml | 67 ++++++++++++++++++- ...github_dark_high_contrast_transparent.toml | 2 + 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 helix/.config/helix/themes/github_dark_high_contrast_transparent.toml diff --git a/helix/.config/helix/config.toml b/helix/.config/helix/config.toml index 02b34e4..f7de034 100644 --- a/helix/.config/helix/config.toml +++ b/helix/.config/helix/config.toml @@ -1,4 +1,4 @@ -theme = "github_dark" +theme = "github_dark_high_contrast_transparent" [editor] line-number = "relative" @@ -20,4 +20,69 @@ tabpad = "·" nbsp = "⍽" [keys.normal] +# Nicities esc = ["collapse_selection", "keep_primary_selection"] + +C-h = "select_prev_sibling" +C-j = "shrink_selection" +C-k = "expand_selection" +C-l = "select_next_sibling" + +o = ["open_below", "normal_mode"] +O = ["open_above", "normal_mode"] + +C-r = "redo" + +x = "extend_line" + +# Vim-like +V = ["select_mode", "extend_to_line_bounds"] +C = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection", "insert_mode"] +D = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection"] +G = "goto_last_line" + +# Vim-like but also generally useful +"{" = ["goto_prev_paragraph", "collapse_selection"] +"}" = ["goto_next_paragraph", "collapse_selection"] + +i = ["insert_mode", "collapse_selection"] +a = ["append_mode", "collapse_selection"] + +0 = "goto_first_nonwhitespace" +"^" = "goto_line_start" +"$" = "goto_line_end" + +u = ["undo", "collapse_selection"] + +## Search for word under cursor +"*" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_next"] +"#" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_prev"] + +[keys.insert] +# Nicities +esc = ["collapse_selection", "normal_mode"] + +[keys.select] +# Nicities +esc = ["collapse_selection", "keep_primary_selection", "normal_mode"] + +";" = ["collapse_selection", "normal_mode"] + +x = "extend_line" + +# Vim-like +V = ["select_mode", "extend_to_line_bounds"] +C = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection", "insert_mode"] +D = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection"] +G = "goto_last_line" + +# Vim-like but also generally useful +"{" = ["goto_prev_paragraph", "collapse_selection"] +"}" = ["goto_next_paragraph", "collapse_selection"] + +i = "select_textobject_inner" +a = "select_textobject_around" + +0 = "goto_first_nonwhitespace" +"^" = "goto_line_start" +"$" = "goto_line_end" diff --git a/helix/.config/helix/themes/github_dark_high_contrast_transparent.toml b/helix/.config/helix/themes/github_dark_high_contrast_transparent.toml new file mode 100644 index 0000000..3e3ebe1 --- /dev/null +++ b/helix/.config/helix/themes/github_dark_high_contrast_transparent.toml @@ -0,0 +1,2 @@ +inherits = "github_dark_high_contrast" +"ui.background" = { }