1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-29 21:51:03 +01:00
nixvim/tests/test-sources/plugins/by-name/telescope/live-grep-args.nix
Matt Sturgeon 824e048096 tests/fetch-tests: only apply required args
Using `functionArgs` and `intersectAttrs`, apply only the required args
to test module files.
2025-11-24 11:09:51 +00:00

74 lines
1.6 KiB
Nix

{ pkgs }:
{
empty = {
plugins.telescope = {
enable = true;
extensions.live-grep-args.enable = true;
};
plugins.web-devicons.enable = true;
};
default = {
plugins.telescope = {
enable = true;
extensions.live-grep-args = {
enable = true;
settings = {
auto_quoting = true;
mappings.__empty = { };
};
};
};
plugins.web-devicons.enable = true;
};
example = {
plugins.telescope = {
enable = true;
extensions.live-grep-args = {
enable = true;
settings = {
auto_quoting = true;
mappings = {
i = {
"<C-k>".__raw = ''require("telescope-live-grep-args.actions").quote_prompt()'';
"<C-i>".__raw =
''require("telescope-live-grep-args.actions").quote_prompt({ postfix = " --iglob " })'';
"<C-space>".__raw = ''require("telescope-live-grep-args.actions").to_fuzzy_refine'';
};
};
theme = "dropdown";
};
};
};
plugins.web-devicons.enable = true;
};
custom-packages = {
plugins = {
telescope = {
enable = true;
extensions.live-grep-args.enable = true;
};
web-devicons.enable = true;
};
dependencies.ripgrep.package = pkgs.gnugrep;
};
no-packages = {
plugins = {
telescope = {
enable = true;
extensions.live-grep-args.enable = true;
};
web-devicons.enable = false;
};
dependencies.ripgrep.enable = false;
};
}