about summary refs log tree commit diff
path: root/pkgs/applications/editors/neovim
diff options
context:
space:
mode:
authorMatthieu Coudron <mcoudron@hotmail.com>2021-09-14 21:49:16 +0200
committerMatthieu Coudron <mcoudron@hotmail.com>2021-09-17 00:33:03 +0200
commit761b2c6ff342425388db38b86f1c49cbdb232514 (patch)
tree1599bf0eb7caa76458cd117172e523c1d3a09a7c /pkgs/applications/editors/neovim
parent47eaf6727bd362dac94eab91b7fdc876642d578b (diff)
downloadnixlib-761b2c6ff342425388db38b86f1c49cbdb232514.tar
nixlib-761b2c6ff342425388db38b86f1c49cbdb232514.tar.gz
nixlib-761b2c6ff342425388db38b86f1c49cbdb232514.tar.bz2
nixlib-761b2c6ff342425388db38b86f1c49cbdb232514.tar.lz
nixlib-761b2c6ff342425388db38b86f1c49cbdb232514.tar.xz
nixlib-761b2c6ff342425388db38b86f1c49cbdb232514.tar.zst
nixlib-761b2c6ff342425388db38b86f1c49cbdb232514.zip
neovim.tests: complete plug test
to check that it can correctly load the colorscheme
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r--pkgs/applications/editors/neovim/tests.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/editors/neovim/tests.nix b/pkgs/applications/editors/neovim/tests.nix
index 202b18efb8cf..e442de6939bd 100644
--- a/pkgs/applications/editors/neovim/tests.nix
+++ b/pkgs/applications/editors/neovim/tests.nix
@@ -87,10 +87,19 @@ rec {
   nvim_with_plug = neovim.override {
     extraName = "-with-plug";
     configure.plug.plugins = with pkgs.vimPlugins; [
-      vim-go
+      base16-vim
     ];
+    configure.customRC = ''
+      color base16-tomorrow-night
+      set background=dark
+    '';
   };
 
+  run_nvim_with_plug = runTest nvim_with_plug ''
+    export HOME=$TMPDIR
+    ${nvim_with_plug}/bin/nvim -i NONE -c 'color base16-tomorrow-night'  +quit!
+  '';
+
   # nixpkgs should detect that no wrapping is necessary
   nvimShouldntWrap = wrapNeovim2 "-should-not-wrap" nvimAutoDisableWrap;