1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

neovim.tests: add a test for tags generation

packer.nvim has a doc/ folder so the vim doc hook should generate a 'tags' file
This commit is contained in:
Matthieu Coudron 2021-09-16 22:22:25 +02:00
parent 22caffad3a
commit cae999f7a3

View file

@ -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;