mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
plugins/telescope: refactor extensions
This commit is contained in:
parent
3c0951ebc8
commit
b38f24f348
23 changed files with 1136 additions and 601 deletions
73
tests/test-sources/plugins/telescope/frecency.nix
Normal file
73
tests/test-sources/plugins/telescope/frecency.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue