There has been a major breaking change upstream, as they have merged updated the plug-in to its (majorly incompatible) main branch rewrite. To make the upgrade process easier, this overlay ensures my configuration will keep evaluating with the legacy plug-in variant.
18 lines
472 B
Nix
18 lines
472 B
Nix
final: prev:
|
|
let
|
|
inherit (final) lib;
|
|
overrides = final: prev:
|
|
let
|
|
hasLegacyPackage = prev ? nvim-treesitter-legacy;
|
|
in
|
|
{
|
|
nvim-treesitter-textobjects-legacy = prev.nvim-treesitter-textobjects.overrideAttrs {
|
|
dependencies = [ final.nvim-treesitter-legacy ];
|
|
};
|
|
} // (lib.optionalAttrs (!hasLegacyPackage) {
|
|
nvim-treesitter-legacy = final.nvim-treesitter;
|
|
});
|
|
in
|
|
{
|
|
vimPlugins = prev.vimPlugins.extend (overrides);
|
|
}
|