{ lib, config, ... }: let inherit (lib) mkEnableOption mkIf; cfg = config.home.devtools.nixvim.plugins.telescope; in { options = { home.devtools.nixvim.plugins.telescope.enable = mkEnableOption "Enables Telescope plugin for nixvim"; }; config = mkIf cfg.enable { programs.nixvim.plugins.telescope = { enable = true; keymaps = { "ff" = "find_files"; "fg" = "live_grep"; "b" = "buffers"; "fh" = "help_tags"; "fd" = "diagnostics"; "" = "git_files"; "p" = "oldfiles"; "" = "live_grep"; }; settings.defaults = { file_ignore_patterns = [ "^.git/" "^.mypy_cache/" "^__pycache__/" "^output/" "^data/" "%.ipynb" ]; set_env.COLORTERM = "truecolor"; }; }; }; }