nix-community.nixvim/tests/test-sources/plugins/telescope/default.nix
2024-07-24 16:50:50 +02:00

35 lines
797 B
Nix

{
empty = {
plugins.telescope.enable = true;
};
example = {
plugins.telescope = {
enable = true;
keymaps = {
"<leader>fg" = "live_grep";
"<C-p>" = {
action = "git_files";
options.desc = "Telescope Git Files";
};
};
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")
'';
};
}