1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 10:49:48 +01:00

Reapply "programs.neovim: link packpath dir in XDG_DATA_HOME (#3717)" (#3817)

This reverts commit 0e065e1b6f.
This commit is contained in:
Matthieu C. 2024-09-25 22:37:00 +02:00
parent e1aec543f5
commit b6e728a3a3

View file

@ -416,6 +416,14 @@ in {
home.shellAliases = mkIf cfg.vimdiffAlias { vimdiff = "nvim -d"; };
# link the packpath in expected folder so that even unwrapped neovim can pick
# home-manager's plugins
xdg.dataFile = mkMerge (mapAttrsToList (name: val: {
"nvim/site" = {
source = pkgs.vimUtils.packDir neovimConfig.packpathDirs;
};
}) neovimConfig.packpathDirs);
xdg.configFile =
let hasLuaConfig = hasAttr "lua" config.programs.neovim.generatedConfigs;
in mkMerge (