mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
plugins/telescope: add compatibility with combinePlugins
This commit is contained in:
parent
5c75cfac13
commit
532b0044d0
2 changed files with 18 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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")
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue