neovim: pass the --clean flag to only use wrapped rc

authored by 06kellyjac and committed by Matthieu Coudron ce49cb77 55886257

+1 -1
+1 -1
pkgs/applications/editors/neovim/wrapper.nix
··· 45 45 finalMakeWrapperArgs = 46 46 [ "${neovim}/bin/nvim" "${placeholder "out"}/bin/nvim" ] 47 47 ++ [ "--set" "NVIM_SYSTEM_RPLUGIN_MANIFEST" "${placeholder "out"}/rplugin.vim" ] 48 - ++ optionals wrapRc [ "--add-flags" "-u ${writeText "init.vim" neovimRcContent}" ] 48 + ++ optionals wrapRc [ "--add-flags" "--clean" "--add-flags" "-u ${writeText "init.vim" neovimRcContent}" ] 49 49 ; 50 50 in 51 51 assert withPython2 -> throw "Python2 support has been removed from the neovim wrapper, please remove withPython2 and python2Env.";