Skip to content

Commit f8c7b7c

Browse files
committed
plugins/telescope: add compatibility with combinePlugins
1 parent 9a8f196 commit f8c7b7c

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

plugins/telescope/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ helpers.neovim-plugin.mkNeovimPlugin config {
112112
require('telescope').load_extension(extension)
113113
end
114114
'';
115+
116+
# planets picker requires files in data/memes/planets
117+
performance.combinePlugins.pathsToLink = [ "/data/memes/planets" ];
115118
};
116119

117120
settingsOptions = {

tests/test-sources/plugins/telescope/default.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,19 @@
1717
highlightTheme = "gruvbox";
1818
};
1919
};
20+
21+
combine-plugins.module =
22+
{ config, ... }:
23+
{
24+
plugins.telescope.enable = true;
25+
26+
performance.combinePlugins.enable = true;
27+
28+
extraConfigLuaPost = # lua
29+
''
30+
-- I don't know how run telescope properly in test environment,
31+
-- so just check that files exist
32+
assert(vim.api.nvim_get_runtime_file("data/memes/planets/earth", false)[1], "telescope planets aren't found in runtime")
33+
'';
34+
};
2035
}

0 commit comments

Comments
 (0)