mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-28 02:24:12 -05:00
feat(home/helix): reload config when changed
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{config, ...}: let
|
||||
{config, pkgs, ...}: let
|
||||
inherit (config) colorscheme;
|
||||
hash = builtins.hashString "md5" (builtins.toJSON colorscheme.colors);
|
||||
in {
|
||||
@@ -18,10 +18,12 @@ in {
|
||||
};
|
||||
};
|
||||
languages = {
|
||||
language = [{
|
||||
name = "nix";
|
||||
language-servers = ["nixd" "nil"];
|
||||
}];
|
||||
language = [
|
||||
{
|
||||
name = "nix";
|
||||
language-servers = ["nixd" "nil"];
|
||||
}
|
||||
];
|
||||
language-server.nixd = {
|
||||
command = "nixd";
|
||||
config.formatting.command = "alejandra";
|
||||
@@ -29,4 +31,7 @@ in {
|
||||
};
|
||||
themes."nix-${hash}" = import ./theme.nix {inherit colorscheme;};
|
||||
};
|
||||
xdg.configFile."helix/config.toml".onChange = ''
|
||||
${pkgs.procps}/bin/pkill -u $USER -USR1 hx || true
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user