Skip to content

Commit

Permalink
neovim.tests: add a test for tags generation
Browse files Browse the repository at this point in the history
packer.nvim has a doc/ folder so the vim doc hook should generate a 'tags' file
  • Loading branch information
Matthieu Coudron committed Sep 17, 2021
1 parent 22caffa commit cae999f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/applications/editors/neovim/tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cae999f

Please sign in to comment.