modules/spellfiles: init

This commit is contained in:
Gaetan Lepage 2025-04-03 16:01:05 +02:00
parent a3245848da
commit 420470dfde
7 changed files with 1015 additions and 0 deletions

View file

@ -1,9 +1,11 @@
{
lib,
writeShellApplication,
rust-analyzer-options,
efmls-configs-sources,
none-ls-builtins,
lspconfig-servers,
fetch-spellfiles,
nixfmt-rfc-style,
nodePackages,
}:
@ -49,6 +51,12 @@ writeShellApplication {
echo "lspconfig servers"
prettier --parser=json "${lspconfig-servers}" >"$generated_dir/lspconfig-servers.json"
echo "fetching spellfiles"
${lib.getExe fetch-spellfiles} > "$generated_dir/spellfiles.json"
prettier --parser=json --write "$generated_dir/spellfiles.json"
################################################################
if [ -n "$commit" ]; then
cd "$generated_dir"
git add .