nvimConfig/modules/module/settings/env.nix
2026-07-24 15:04:12 +10:00

21 lines
598 B
Nix

{
config,
pkgs,
lib,
...
}: {
# Environment variables set for the wrapper.
# These are available when running neovim.
config.env = lib.mkMerge [
(lib.mkIf (config.cats.python or false) {
UV_PYTHON_DOWNLOADS = "never";
UV_PYTHON = pkgs.python.interpreter;
})
# R.nvim v1.x owns its cache and temporary directories and exports
# RNVIM_COMPLDIR/RNVIM_TMPDIR during setup. Do not inject literal `$PWD`
# values into the wrapper environment.
];
# Environment variables with defaults (can be overridden by user)
config.envDefault = lib.mkMerge [ ];
}