feat: use helix editor alongside neovim
This commit is contained in:
parent
bab224d4d1
commit
20f6439cc7
2 changed files with 45 additions and 13 deletions
|
@ -1,20 +1,22 @@
|
||||||
{ pkgs
|
{ pkgs, ... }: {
|
||||||
, ...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
#./vscode.nix
|
|
||||||
#./intellij.nix
|
|
||||||
];
|
|
||||||
programs.nixvim = import ./nixvim;
|
programs.nixvim = import ./nixvim;
|
||||||
# dependencies for nixvim configuration
|
# dependencies for nixvim configuration
|
||||||
home.packages = with pkgs; [ ripgrep fd ];
|
home.packages = with pkgs; [ ripgrep fd ];
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
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" = { };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
programs.vscode = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.vscode.fhs;
|
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
30
home-manager/stvnliu/helix-langs.nix
Normal file
30
home-manager/stvnliu/helix-langs.nix
Normal 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";
|
||||||
|
}
|
||||||
|
# { }
|
||||||
|
# { }
|
||||||
|
# { }
|
||||||
|
]
|
Loading…
Add table
Add a link
Reference in a new issue