feat: use helix editor alongside neovim

This commit is contained in:
Zhongheng Liu 2025-05-29 19:03:57 +03:00
commit 20f6439cc7
Signed by: steven
GPG key ID: 805A28B071DAD84B
2 changed files with 45 additions and 13 deletions

View file

@ -1,20 +1,22 @@
{ pkgs
, ...
}: {
imports = [
#./vscode.nix
#./intellij.nix
];
{ pkgs, ... }: {
programs.nixvim = import ./nixvim;
# dependencies for nixvim configuration
home.packages = with pkgs; [ ripgrep fd ];
programs.helix = {
enable = true;
};
/*
programs.vscode = {
enable = true;
package = pkgs.vscode.fhs;
settings = {
editor.cursor-shape = {
normal = "block";
insert = "bar";
select = "underline";
};
};
*/
languages.language = import ./helix-langs.nix { inherit pkgs; };
themes = {
autumn_night_transparent = {
"inherits" = "autumn_night";
"ui.background" = { };
};
};
};
}

View file

@ -0,0 +1,30 @@
{ pkgs }: [
{
name = "nix";
auto-format = true;
formatter.command = "${pkgs.nixfmt}/bin/nixfmt";
}
{
name = "python";
auto-format = true;
formatter.command = "${pkgs.black}/bin/black";
}
{
name = "rust";
auto-format = true;
formatter.command = "${pkgs.rustfmt}/bin/rustfmt";
}
{
name = "java";
auto-format = true;
formatter.command = "${pkgs.jdt-language-server}/bin/jdtls";
}
{
name = "c";
auto-format = true;
formatter.command = "${pkgs.astyle}/bin/astyle --squeeze-ws --style=c";
}
# { }
# { }
# { }
]