From 5c75cfac13510bdda1f2cdb2037b4eb08620adb2 Mon Sep 17 00:00:00 2001 From: Stanislav Asunkin <1353637+stasjok@users.noreply.github.com> Date: Tue, 16 Jul 2024 12:38:32 +0300 Subject: [PATCH] plugins/telescope/fzy-native: add compatibility with `combinePlugins` --- plugins/telescope/extensions/fzy-native.nix | 5 +++++ tests/test-sources/plugins/telescope/fzy-native.nix | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/plugins/telescope/extensions/fzy-native.nix b/plugins/telescope/extensions/fzy-native.nix index 602d8bb2f8..744d1a767a 100644 --- a/plugins/telescope/extensions/fzy-native.nix +++ b/plugins/telescope/extensions/fzy-native.nix @@ -38,4 +38,9 @@ override_file_sorter = true; override_generic_sorter = false; }; + + extraConfig = cfg: { + # fzy-native itself is in deps directory + performance.combinePlugins.pathsToLink = [ "/deps/fzy-lua-native" ]; + }; } diff --git a/tests/test-sources/plugins/telescope/fzy-native.nix b/tests/test-sources/plugins/telescope/fzy-native.nix index f6f3474768..42112ea3e3 100644 --- a/tests/test-sources/plugins/telescope/fzy-native.nix +++ b/tests/test-sources/plugins/telescope/fzy-native.nix @@ -20,4 +20,13 @@ }; }; }; + + combine-plugins = { + plugins.telescope = { + enable = true; + extensions.fzy-native.enable = true; + }; + + performance.combinePlugins.enable = true; + }; }