mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
33 lines
902 B
Nix
33 lines
902 B
Nix
{ 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;
|
|
};
|
|
|
|
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";
|
|
});
|
|
}
|