plugins/telescope: refactor extensions

This commit is contained in:
Gaetan Lepage 2024-03-24 17:42:40 +01:00 committed by Gaétan Lepage
parent 3c0951ebc8
commit b38f24f348
23 changed files with 1136 additions and 601 deletions

View file

@ -0,0 +1,73 @@
{
empty = {
# A warning is displayed on stdout
tests.dontRun = true;
plugins.telescope = {
enable = true;
extensions.frecency.enable = true;
};
};
defaults = {
# A warning is displayed on stdout
tests.dontRun = true;
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
tests.dontRun = true;
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";
};
};
};
};
};
}