mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 03:26:17 +00:00
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ lib, config, ... }:
|
|
let
|
|
cfg = config.presets.base.find;
|
|
in
|
|
{
|
|
options.presets.base.find = {
|
|
enable = lib.mkEnableOption "file finding";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
plugins = {
|
|
web-devicons.enable = true;
|
|
telescope = {
|
|
enable = true;
|
|
keymaps = {
|
|
"ff" = {
|
|
action = "git_files";
|
|
mode = "n";
|
|
};
|
|
"fa" = {
|
|
action = "find_files";
|
|
mode = "n";
|
|
};
|
|
"fg" = {
|
|
action = "live_grep";
|
|
mode = "n";
|
|
};
|
|
"fc" = {
|
|
action = "buffers";
|
|
mode = "n";
|
|
};
|
|
};
|
|
};
|
|
which-key.settings.spec = [
|
|
{
|
|
__unkeyed-1 = "f";
|
|
group = "Find";
|
|
icon = "";
|
|
}
|
|
{
|
|
__unkeyed-1 = "ff";
|
|
desc = "File";
|
|
icon = "";
|
|
}
|
|
{
|
|
__unkeyed-1 = "fa";
|
|
desc = "All Files";
|
|
icon = "";
|
|
}
|
|
{
|
|
__unkeyed-1 = "fg";
|
|
desc = "Grep";
|
|
icon = "";
|
|
}
|
|
{
|
|
__unkeyed-1 = "fc";
|
|
desc = "Current";
|
|
icon = "";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|