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-16 22:22:25 +0200
committerMatthieu Coudron <mcoudron@hotmail.com>2021-09-17 16:00:00 +0200
commitcae999f7a36027deb00ff3ad77cf02a09de8f0b5 (patch)
treedb546e5265aa42670d4add7f61fccccee641f7f3 /pkgs/applications/editors/neovim
parent22caffad3a2b32a0be38cd2a3a1e1953f3d153f0 (diff)
downloadnixlib-cae999f7a36027deb00ff3ad77cf02a09de8f0b5.tar
nixlib-cae999f7a36027deb00ff3ad77cf02a09de8f0b5.tar.gz
nixlib-cae999f7a36027deb00ff3ad77cf02a09de8f0b5.tar.bz2
nixlib-cae999f7a36027deb00ff3ad77cf02a09de8f0b5.tar.lz
nixlib-cae999f7a36027deb00ff3ad77cf02a09de8f0b5.tar.xz
nixlib-cae999f7a36027deb00ff3ad77cf02a09de8f0b5.tar.zst
nixlib-cae999f7a36027deb00ff3ad77cf02a09de8f0b5.zip
neovim.tests: add a test for tags generation
packer.nvim has a doc/ folder so the vim doc hook should generate a 'tags' file
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r--pkgs/applications/editors/neovim/tests.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/applications/editors/neovim/tests.nix b/pkgs/applications/editors/neovim/tests.nix
index e442de6939bd..085fceac1108 100644
--- a/pkgs/applications/editors/neovim/tests.nix
+++ b/pkgs/applications/editors/neovim/tests.nix
@@ -100,6 +100,17 @@ rec {
     ${nvim_with_plug}/bin/nvim -i NONE -c 'color base16-tomorrow-night'  +quit!
   '';
 
+
+  # check that the vim-doc hook correctly generates the tag
+  # we know for a fact packer has a doc folder
+  checkForTags = vimPlugins.packer-nvim.overrideAttrs(oldAttrs: {
+    doInstallCheck = true;
+    installCheckPhase = ''
+      [ -f $out/doc/tags ]
+    '';
+  });
+
+
   # nixpkgs should detect that no wrapping is necessary
   nvimShouldntWrap = wrapNeovim2 "-should-not-wrap" nvimAutoDisableWrap;