summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2022-07-26 09:50:50 +0100
committerMatthieu Coudron <teto@users.noreply.github.com>2022-07-26 11:07:44 +0200
commitce49cb7792a7ffd65ef352dda1110a4e4a204eac (patch)
tree7066bbe34358a50ed9f8124a1d83f89804acfaad /pkgs
parent558862570628975b5909a07ca6a198785a53022a (diff)
neovim: pass the --clean flag to only use wrapped rc
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/editors/neovim/wrapper.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/editors/neovim/wrapper.nix b/pkgs/applications/editors/neovim/wrapper.nix
index 2a0d60ce5a796..4fa666bc787ed 100644
--- a/pkgs/applications/editors/neovim/wrapper.nix
+++ b/pkgs/applications/editors/neovim/wrapper.nix
@@ -45,7 +45,7 @@ let
     finalMakeWrapperArgs =
       [ "${neovim}/bin/nvim" "${placeholder "out"}/bin/nvim" ]
       ++ [ "--set" "NVIM_SYSTEM_RPLUGIN_MANIFEST" "${placeholder "out"}/rplugin.vim" ]
-      ++ optionals wrapRc [ "--add-flags" "-u ${writeText "init.vim" neovimRcContent}" ]
+      ++ optionals wrapRc [ "--add-flags" "--clean" "--add-flags" "-u ${writeText "init.vim" neovimRcContent}" ]
       ;
   in
   assert withPython2 -> throw "Python2 support has been removed from the neovim wrapper, please remove withPython2 and python2Env.";