-
|
I am using neogit which acts up if it cannot find spell files. What would be the best way to add spell files? Ideally downloading them as part of the nix build process. Related from nixvim |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
well, option 1, and definitely the easiest one is to put them directly in your config in spell/* Option 2 would be something kinda like the following inputs.my-spellfile = { # a repo with your spell file in it
url = "idk";
flake = false;
};If your spellfile was in your repo and not in the config directory and you wanted to do it as a plugin you could do the # in your StartupPlugins
(mkPlugin "my-spellfile" (pkgs.runCommand "my-spellfile" { } ''
mkdir -p $out/spell
cp ${inputs.my-spellfile}/* $out/spell/
''))However, if your repo you are pulling them from already has the spell file in the spell/* directory then you can skip the pkgs.runCommand and just do (mkPlugin "my-spellfile" inputs.my-spellfile) |
Beta Was this translation helpful? Give feedback.
well, option 1, and definitely the easiest one is to put them directly in your config in spell/*
Option 2 would be something kinda like the following
If your spellfile was in your repo and not in the config directory and you wanted to do it as a plugin you could do the
${./nix_path}to it rather than a flake input or fetchGitHowever, if your repo you are pulling them from already has the spell file in the spell/* directory then you can ski…