From cae999f7a36027deb00ff3ad77cf02a09de8f0b5 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Thu, 16 Sep 2021 22:22:25 +0200 Subject: [PATCH] neovim.tests: add a test for tags generation packer.nvim has a doc/ folder so the vim doc hook should generate a 'tags' file --- pkgs/applications/editors/neovim/tests.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/applications/editors/neovim/tests.nix b/pkgs/applications/editors/neovim/tests.nix index e442de6939bd5..085fceac11084 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;