diff options
author | Matthieu Coudron <mcoudron@hotmail.com> | 2021-05-25 22:37:57 +0200 |
---|---|---|
committer | Matthieu Coudron <mcoudron@hotmail.com> | 2021-05-25 22:41:08 +0200 |
commit | 4a860879ea76c2be86a696cb885cc51bfe8f61fa (patch) | |
tree | 4d623a997b8900ca694f596e7d9f35bc02247504 /pkgs/test | |
parent | 7836469dbe40783c640e2c0fafd2e55248ffea31 (diff) | |
download | nixpkgs-4a860879ea76c2be86a696cb885cc51bfe8f61fa.tar nixpkgs-4a860879ea76c2be86a696cb885cc51bfe8f61fa.tar.gz nixpkgs-4a860879ea76c2be86a696cb885cc51bfe8f61fa.tar.bz2 nixpkgs-4a860879ea76c2be86a696cb885cc51bfe8f61fa.tar.lz nixpkgs-4a860879ea76c2be86a696cb885cc51bfe8f61fa.tar.xz nixpkgs-4a860879ea76c2be86a696cb885cc51bfe8f61fa.tar.zst nixpkgs-4a860879ea76c2be86a696cb885cc51bfe8f61fa.zip |
wrapNeovimUnstable: accept a wrapRc boolean
additional argument not generated by makeNeovimConfig If true (the default), appends "-u <customRc>" to the wrapped arguments. Set to false if you want to control where to save the generated config (e.g., in ~/.config/init.vim or project/.nvimrc)
Diffstat (limited to 'pkgs/test')
-rw-r--r-- | pkgs/test/vim/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/test/vim/default.nix b/pkgs/test/vim/default.nix index 9128e1bcb11..c75836aa9a8 100644 --- a/pkgs/test/vim/default.nix +++ b/pkgs/test/vim/default.nix @@ -26,20 +26,18 @@ let wrapNeovim = suffix: config: wrapNeovimUnstable neovim-unwrapped (config // { extraName = suffix; - wrapperArgs = lib.escapeShellArgs (config.wrapperArgs ++ - ["--add-flags" "-u ${writeText "init.vim" config.neovimRcContent}"] - ); + wrapRc = true; }); in { vim_empty_config = vimUtils.vimrcFile { beforePlugins = ""; customRC = ""; }; ### neovim tests - ##############3 + ################## nvim_with_plugins = wrapNeovim "-with-plugins" nvimConfNix; ### vim tests - ##############3 + ################## vim_with_vim2nix = vim_configurable.customize { name = "vim"; vimrcConfig.vam.pluginDictionaries = [ "vim-addon-vim2nix" ]; }; |