From 0779f466fd0a4fb3c736f88dc72277eb43e69062 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Thu, 25 Dec 2025 22:42:46 +0100 Subject: [PATCH] add helix --- config-stow | 3 +- config/helix/.config/helix/config.toml | 50 +++++++++++++++++++++++ config/helix/.config/helix/languages.toml | 13 ++++++ config/niri/.config/niri/config/misc.kdl | 2 +- 4 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 config/helix/.config/helix/config.toml create mode 100644 config/helix/.config/helix/languages.toml diff --git a/config-stow b/config-stow index 68a3582..4ec1158 100755 --- a/config-stow +++ b/config-stow @@ -14,7 +14,8 @@ BASE_PKGS = [ # e.g. servers that are accessed via SSH only TUI_PKGS = [ *BASE_PKGS, - "fastfetch", # sys info + "fastfetch", # sys info, + "helix", # editor "nvim", # editor "shell", # fish & .bash_profile & shell prompt "yazi" # terminal file manager diff --git a/config/helix/.config/helix/config.toml b/config/helix/.config/helix/config.toml new file mode 100644 index 0000000..5324937 --- /dev/null +++ b/config/helix/.config/helix/config.toml @@ -0,0 +1,50 @@ +theme = "catppuccin_mocha" + +[editor] +default-yank-register = "+" +shell = ["bash", "-c"] +line-number = "relative" +indent-guides.render = true + +[editor.cursor-shape] +insert = "bar" +normal = "block" +select = "underline" + +[keys.normal] +# "esc" = "collapse_selection" +"-" = "collapse_selection" +"A-minus" = "flip_selections" +"#" = "switch_to_lowercase" +"A-#" = "switch_to_uppercase" + +# Previously "[" +[keys.normal."ö"] +"d" = "goto_prev_diag" +"D" = "goto_first_diag" +"f" = "goto_prev_function" +"t" = "goto_prev_class" +"a" = "goto_prev_parameter" +"c" = "goto_prev_comment" +"T" = "goto_prev_test" +"p" = "goto_prev_paragraph" +"g" = "goto_prev_change" +"G" = "goto_first_change" +"space" = "add_newline_above" + +# Previously "]" +[keys.normal."ä"] +"d" = "goto_next_diag" +"D" = "goto_last_diag" +"f" = "goto_next_function" +"t" = "goto_next_class" +"a" = "goto_next_parameter" +"c" = "goto_next_comment" +"T" = "goto_next_test" +"p" = "goto_next_paragraph" +"g" = "goto_next_change" +"G" = "goto_last_change" +"space" = "add_newline_below" + +# [keys.insert."j"] +# "k" = "normal_mode" diff --git a/config/helix/.config/helix/languages.toml b/config/helix/.config/helix/languages.toml new file mode 100644 index 0000000..ffa4dca --- /dev/null +++ b/config/helix/.config/helix/languages.toml @@ -0,0 +1,13 @@ +[[language]] +name = "c" +auto-format = true +indent = { tab-width = 4, unit = " " } + +[[language]] +name = "cpp" +auto-format = true +indent = { tab-width = 4, unit = " " } + +[[language]] +name = "toml" +auto-format = true diff --git a/config/niri/.config/niri/config/misc.kdl b/config/niri/.config/niri/config/misc.kdl index cccfe86..b6a5dca 100644 --- a/config/niri/.config/niri/config/misc.kdl +++ b/config/niri/.config/niri/config/misc.kdl @@ -1,7 +1,7 @@ screenshot-path "~/Pictures/Screenshots/niri_screenshot_%Y-%m-%d_%H-%M-%S.png" debug { - render-drm-device "/dev/dri/card0" + render-drm-device "/dev/dri/card2" } // gestures {