feat: add new editor - helix

This commit is contained in:
Ryan Yin
2023-07-27 18:23:22 +08:00
parent f66e73c5a6
commit 78319f4ef6
5 changed files with 180 additions and 6 deletions
+23
View File
@@ -0,0 +1,23 @@
{ pkgs, lib, ... }:
{
xdg.configFile."helix/themes/catppuccino_mocha.toml".source = ./theme_catppuccin_mocha.toml;
programs.helix = {
enable = true;
package = pkgs.helix;
settings = {
theme = "catppuccino_mocha";
editor = {
line-number = "relative";
lsp.display-messages = true;
};
keys.normal = {
space.space = "file_picker";
space.w = ":w";
space.q = ":q";
esc = [ "collapse_selection" "keep_primary_selection" ];
};
};
};
}