mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-30 23:55:15 +02:00
plugins/telescope: move to by-name
This commit is contained in:
parent
d07a9c78cc
commit
6debe9333f
19 changed files with 0 additions and 2 deletions
40
tests/test-sources/plugins/by-name/telescope/default.nix
Normal file
40
tests/test-sources/plugins/by-name/telescope/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
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 = {
|
||||
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")
|
||||
'';
|
||||
};
|
||||
|
||||
no-packages = {
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
iconsPackage = null;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue