diff --git a/users/common/programs/nvim/default.nix b/users/common/programs/nvim/default.nix index dc20df3..bf58e8f 100644 --- a/users/common/programs/nvim/default.nix +++ b/users/common/programs/nvim/default.nix @@ -34,6 +34,14 @@ ".cache/nvim" ]; home.shellAliases.nixvim = lib.getExe (pkgs.nixvim.makeNixvim { + package = pkgs.neovim-unwrapped.overrideAttrs (_final: prev: { + nativeBuildInputs = (prev.nativeBuildInputs or []) ++ [pkgs.makeWrapper]; + postInstall = + (prev.postInstall or "") + + '' + wrapProgram $out/bin/nvim --add-flags "--clean" + ''; + }); colorscheme = "onedark"; colorschemes.onedark.enable = true; });