2024-12-12 02:11:12 +00:00
|
|
|
{ config, lib, helpers, hmConfig, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (hmConfig.xdg) userDirs;
|
|
|
|
telescopeExtensions = config.plugins.telescope.extensions;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
plugins.telescope.extensions.frecency = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
show_scores = true;
|
|
|
|
show_unindexed = true;
|
|
|
|
workspaces = {
|
|
|
|
writings = "${userDirs.documents}/Writings";
|
|
|
|
packages = "${userDirs.extraConfig.XDG_PROJECTS_DIR}/packages";
|
|
|
|
software = "${userDirs.extraConfig.XDG_PROJECTS_DIR}/software";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
plugins.telescope.extensions.live-grep-args = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2024-12-27 02:53:42 +00:00
|
|
|
keymaps =
|
|
|
|
lib.optionals telescopeExtensions.live-grep-args.enable (lib.singleton {
|
|
|
|
mode = "n";
|
|
|
|
key = "<leader>fG";
|
|
|
|
options.desc = "Live grep (with args) for the whole project";
|
|
|
|
action = helpers.mkRaw "require('telescope').extensions.live_grep_args.live_grep_args";
|
|
|
|
});
|
2024-12-12 02:11:12 +00:00
|
|
|
}
|