helix: steal fuf's conftig to try it
This commit is contained in:
parent
39eefee27c
commit
e5e7e34ef2
3 changed files with 154 additions and 9 deletions
|
@ -9,12 +9,13 @@
|
|||
inherit (config.modules.other.system) username;
|
||||
inherit (lib) mkIf getExe makeBinPath;
|
||||
in {
|
||||
imports = [./languages.nix];
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
# thanks fufexan, this is great!
|
||||
package = inputs'.helix.packages.default.helix.overrideAttrs (previousAttrs: {
|
||||
package = inputs'.helix.packages.default.overrideAttrs (previousAttrs: {
|
||||
makeWrapperArgs = with pkgs;
|
||||
previousAttrs.makeWrapperArgs
|
||||
or []
|
||||
|
@ -60,14 +61,6 @@ in {
|
|||
A-f = ":format";
|
||||
};
|
||||
};
|
||||
languages = {
|
||||
language-server = {
|
||||
nil = {
|
||||
command = getExe pkgs.nil;
|
||||
config.nil.formatting.command = ["${getExe pkgs.alejandra}" "-q"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue