Unverified Commit 12b9c69a authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

vimPlugins.nvim-treesitter-legacy: don't warn on allowAliases == false (#510907)

parents 6795bbd1 223b891d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  config,
  # nixpkgs functions
  buildGoModule,
  callPackage,
@@ -2805,7 +2806,10 @@ assertNoAdditions {
        callPackage ./nvim-treesitter-legacy/overrides.nix { } self super
      );
    in
    lib.warnOnInstantiate "nvim-treesitter-legacy is deprecated, please migrate to the new version. This will become an error in 26.11" drv;
    if config.allowAliases then
      lib.warnOnInstantiate "nvim-treesitter-legacy is deprecated, please migrate to the new version. This will become an error in 26.11" drv
    else
      drv;

  nvim-treesitter-pairs = super.nvim-treesitter-pairs.overrideAttrs {
    dependencies = [ self.nvim-treesitter-legacy ];