plugins/telescope: add compatibility with combinePlugins

This commit is contained in:
Stanislav Asunkin 2024-07-16 13:25:15 +03:00 committed by traxys
parent 5c75cfac13
commit 532b0044d0
2 changed files with 18 additions and 0 deletions

View file

@ -112,6 +112,9 @@ helpers.neovim-plugin.mkNeovimPlugin config {
require('telescope').load_extension(extension)
end
'';
# planets picker requires files in data/memes/planets
performance.combinePlugins.pathsToLink = [ "/data/memes/planets" ];
};
settingsOptions = {

View file

@ -17,4 +17,19 @@
highlightTheme = "gruvbox";
};
};
combine-plugins.module =
{ config, ... }:
{
plugins.telescope.enable = true;
performance.combinePlugins.enable = true;
extraConfigLuaPost = # lua
''
-- I don't know how run telescope properly in test environment,
-- so just check that files exist
assert(vim.api.nvim_get_runtime_file("data/memes/planets/earth", false)[1], "telescope planets aren't found in runtime")
'';
};
}