nix-community.nixvim/tests/test-sources/plugins/telescope/frecency.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.7 KiB
Nix
Raw Normal View History

2024-03-24 17:42:40 +01:00
{
empty = {
# A warning is displayed on stdout
test.runNvim = false;
2024-03-24 17:42:40 +01:00
plugins.telescope = {
enable = true;
extensions.frecency.enable = true;
};
};
defaults = {
# A warning is displayed on stdout
test.runNvim = false;
2024-03-24 17:42:40 +01:00
plugins.telescope = {
enable = true;
extensions.frecency = {
enable = true;
settings = {
auto_validate = true;
db_root.__raw = "vim.fn.stdpath 'data'";
db_safe_mode = true;
db_validate_threshold = 10;
default_workspace = null;
disable_devicons = false;
hide_current_buffer = false;
filter_delimiter = ":";
ignore_patterns = [
"*.git/*"
"*/tmp/*"
"term://*"
];
max_timestamps = 10;
show_filter_column = true;
show_scores = false;
show_unindexed = true;
workspace_scan_cmd = null;
workspaces = { };
};
};
};
};
example = {
# A warning is displayed on stdout
test.runNvim = false;
2024-03-24 17:42:40 +01:00
plugins.telescope = {
enable = true;
extensions.frecency = {
enable = true;
settings = {
db_root = "/home/my_username/path/to/db_root";
show_scores = false;
show_unindexed = true;
ignore_patterns = [
"*.git/*"
"*/tmp/*"
];
disable_devicons = false;
workspaces = {
conf = "/home/my_username/.config";
data = "/home/my_username/.local/share";
project = "/home/my_username/projects";
wiki = "/home/my_username/wiki";
};
};
};
};
};
}