fix: add gitignore for filter

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-09-21 00:07:28 -05:00
parent 05d5a100b1
commit 57011c28a5
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,5 @@
{pkgs ? import <nixpkgs> {}}: {
ignore = [".idea/" "result"];
settings = {
theme = "catppuccin_mocha_transparent";
editor = {

View File

@ -54,6 +54,7 @@
artifact = buildGrammar grammar;
})
config.grammars;
ignoreFile = pkgs.writeText "ignore" (builtins.concatStringsSep "\n" config.ignore);
configFile = pkgs.writeText "config.toml" (builtins.readFile (tomlFormat.generate "helix-config" config.settings));
languageFile = pkgs.writeText "languages.toml" (builtins.readFile (tomlFormat.generate "helix-languages" config.languages));
themeFiles =
@ -95,6 +96,9 @@
ln -s ${languageFile} $out/home/helix/languages.toml
${builtins.concatStringsSep "\n" themeLinks}
mkdir -p $out/home/git
ln -s ${ignoreFile} $out/home/git/ignore
makeWrapper ${pkgs.helix}/bin/.hx-wrapped $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime --set XDG_CONFIG_HOME $out/home
'';
};