From df76c5fd404a78b136c6c36c7028212e724607b7 Mon Sep 17 00:00:00 2001 From: Agatha Lovelace Date: Fri, 24 Feb 2023 10:23:03 +0100 Subject: [PATCH] Update helix config --- .config/helix/config.toml | 6 ++++-- .config/helix/languages.toml | 9 +++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .config/helix/languages.toml diff --git a/.config/helix/config.toml b/.config/helix/config.toml index 8a8ab0e..fa5ddd9 100644 --- a/.config/helix/config.toml +++ b/.config/helix/config.toml @@ -1,4 +1,4 @@ -theme = "paramount" +theme = "paramount-dark" [editor] middle-click-paste = false @@ -30,4 +30,6 @@ skip-levels = 1 [keys.normal] "C-left" = ["move_prev_word_start", "collapse_selection"] -"C-right" = ["move_next_word_start", "collapse_selection"] \ No newline at end of file +"C-right" = ["move_next_word_start", "collapse_selection"] +"A-d" = "delete_selection" +"d" = "delete_selection_noyank" \ No newline at end of file diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml new file mode 100644 index 0000000..2c771fe --- /dev/null +++ b/.config/helix/languages.toml @@ -0,0 +1,9 @@ +[[language]] +name = "rust" +scope = "source.rust" +indent = { tab-width = 4, unit = " " } + +[[language]] +name = "nix" +auto-format = true +formatter = { command = "nixfmt" } \ No newline at end of file