{...}: { programs.nixvim = { keymaps = [ { key = "gff"; mode = "n"; action = "function() require('telescope').extensions.frecency.frecency() end"; lua = true; options.desc = "activate the frecency file selection"; } ]; plugins.telescope = { extensions.frecency = { enable = true; settings = { show_scores = true; db_safe_mode = false; default_workspace = "CWD"; # or 'LSP' }; }; }; }; }