Skip to content

Commit

Permalink
Remove most of Helix config
Browse files Browse the repository at this point in the history
Zed is my primary editor at the moment, leaving Helix only for ephemeral stuff.
  • Loading branch information
samhh committed Dec 27, 2024
1 parent 9be450a commit 9578918
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions home/editor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,7 @@
{
programs.helix = {
enable = true;
settings = {
editor = {
soft-wrap.enable = true;
rulers = [ 80 ];
};

keys =
let
movement = {
"{" = "goto_prev_paragraph";
"}" = "goto_next_paragraph";
};
in
{
normal = movement // {
# https://github.com/helix-editor/helix/issues/3001
c = "change_selection_noyank";
"A-c" = "change_selection";
d = "delete_selection_noyank";
"A-d" = "delete_selection";

space = {
l = "file_picker_in_current_buffer_directory";
q = ":buffer-close";
Q = ":buffer-close-all";
z = ":format";
};
};

select = movement // {
space.q = ":reflow";
};
};
};
settings.editor.rulers = [ 80 ];
};

programs.zed-editor = {
Expand Down

0 comments on commit 9578918

Please sign in to comment.