{ config, lib, ... }: let cfg = config.homeModules.console.editor.nvim.plugins; in { config = lib.mkIf cfg.telescope { programs.nixvim = { plugins.telescope = { enable = true; extensions = { fzf-native.enable = true; frecency.enable = true; }; keymaps = { "ff" = "find_files"; "fg" = "live_grep"; "b" = "buffers"; "fh" = "help_tags"; "fd" = "diagnostics"; "" = "git_files"; "p" = "oldfiles"; "" = "live_grep"; }; keymapsSilent = true; defaults = { file_ignore_patterns = [ "^.git/" "^data/" ]; set_env.COLORTERM = "truecolor"; }; }; }; }; }