summary refs log tree commit diff
path: root/pkgs/applications/editors/neovim
diff options
context:
space:
mode:
authorMatthieu Coudron <mcoudron@hotmail.com>2023-04-01 21:28:38 +0200
committerMatthieu Coudron <mcoudron@hotmail.com>2023-04-01 21:30:14 +0200
commit67f6f13c2eac885bf379fc0f4abea928c735629c (patch)
tree9511a331efb7515c80c7105da1bfcf14c1f1216d /pkgs/applications/editors/neovim
parent568f71b9d428029c28303987f37589c35de20959 (diff)
downloadnixpkgs-67f6f13c2eac885bf379fc0f4abea928c735629c.tar
nixpkgs-67f6f13c2eac885bf379fc0f4abea928c735629c.tar.gz
nixpkgs-67f6f13c2eac885bf379fc0f4abea928c735629c.tar.bz2
nixpkgs-67f6f13c2eac885bf379fc0f4abea928c735629c.tar.lz
nixpkgs-67f6f13c2eac885bf379fc0f4abea928c735629c.tar.xz
nixpkgs-67f6f13c2eac885bf379fc0f4abea928c735629c.tar.zst
nixpkgs-67f6f13c2eac885bf379fc0f4abea928c735629c.zip
neovim.tests.nvim_with_opt_plugin: fixed
once :Dashboard succeeded, the script would close neovim and thus never
terminate. We instead check if the command ":Dashboard" exists.
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r--pkgs/applications/editors/neovim/tests/default.nix11
1 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/applications/editors/neovim/tests/default.nix b/pkgs/applications/editors/neovim/tests/default.nix
index 707a310b632..ad11a46b4e6 100644
--- a/pkgs/applications/editors/neovim/tests/default.nix
+++ b/pkgs/applications/editors/neovim/tests/default.nix
@@ -169,7 +169,7 @@ rec {
 
   nvim_with_gitsigns_plugin = neovim.override {
     extraName = "-with-gitsigns-plugin";
-    configure.packages.plugins = {
+   configure.packages.plugins = {
       start = [
         vimPlugins.gitsigns-nvim
       ];
@@ -260,13 +260,12 @@ rec {
       packadd dashboard-nvim-unique-for-tests-please-dont-use-opt
 
       " Try to run Dashboard again, and throw if it fails
-      try
-        Dashboard
-        echo "Dashboard found"
-      catch /^Vim\%((\a\+)\)\=:E492/
+      let res = exists(':Dashboard')
+      if res == 0
         echo "Dashboard not found, throwing error"
         cquit 1
-      endtry
+      endif
+      cquit 0
     '';
   };