diff --git a/home-manager/personalities/cli/editor/default.nix b/home-manager/personalities/cli/editor/default.nix index 5196d3d..3d770a9 100644 --- a/home-manager/personalities/cli/editor/default.nix +++ b/home-manager/personalities/cli/editor/default.nix @@ -1 +1 @@ -{ imports = [ ./nvim ]; } +{ imports = [ ./nvim ./helix ]; } diff --git a/home-manager/personalities/cli/editor/helix/default.nix b/home-manager/personalities/cli/editor/helix/default.nix new file mode 100644 index 0000000..e5ace42 --- /dev/null +++ b/home-manager/personalities/cli/editor/helix/default.nix @@ -0,0 +1,16 @@ +{inputs, pkgs, ...}: +{ + programs.helix = { + enable = true; + defaultEditor = true; + settings = { + theme = "catppuccin_mocha"; + keys.normal = { + space.space = "file_picker"; + space.w = ":w"; + space.q = ":q"; + esc = [ "collapse_selection" "keep_primary_selection" ]; + }; + }; + }; +} diff --git a/home-manager/personalities/cli/editor/nvim/default.nix b/home-manager/personalities/cli/editor/nvim/default.nix index a82696d..cda774c 100644 --- a/home-manager/personalities/cli/editor/nvim/default.nix +++ b/home-manager/personalities/cli/editor/nvim/default.nix @@ -2,7 +2,7 @@ { programs.neovim = { enable = true; - defaultEditor = true; + defaultEditor = false; viAlias = true; vimAlias = true; vimdiffAlias = true;