Unverified Commit 1e00cab3 authored by Matthieu Coudron's avatar Matthieu Coudron Committed by GitHub
Browse files

Merge pull request #220474 from Leixb/fixDocsNvim

lua-rocks-move-data: fix missing doc tags on luaPackages neovim plugins
parents 41214830 b9220710
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -157,6 +157,28 @@ rec {
    '';
  });

  # check that the vim-doc hook correctly generates the tag
  # for neovim packages from luaPackages
  # we know for a fact gitsigns-nvim has a doc folder and comes from luaPackages
  checkForTagsLuaPackages = vimPlugins.gitsigns-nvim.overrideAttrs(oldAttrs: {
    doInstallCheck = true;
    installCheckPhase = ''
      [ -f $out/doc/tags ]
    '';
  });

  nvim_with_gitsigns_plugin = neovim.override {
    extraName = "-with-gitsigns-plugin";
    configure.packages.plugins = {
      start = [
        vimPlugins.gitsigns-nvim
      ];
    };
  };
  checkHelpLuaPackages = runTest nvim_with_gitsigns_plugin ''
    export HOME=$TMPDIR
    ${nvim_with_gitsigns_plugin}/bin/nvim -i NONE -c 'help gitsigns' +quitall! -e
  '';

  # nixpkgs should detect that no wrapping is necessary
  nvimShouldntWrap = wrapNeovim2 "-should-not-wrap" nvimAutoDisableWrap;
+1 −1
Original line number Diff line number Diff line
@@ -12,4 +12,4 @@ luarocksMoveDataHook () {
}

echo "Using luarocksMoveDataHook"
preDistPhases+=" luarocksMoveDataHook"
preFixupHooks+=(luarocksMoveDataHook)