about summary refs log tree commit diff stats
path: root/hm/soispha/conf/nvim/plgs/telescope/extensions/frecency/default.nix
blob: b236f3c59889364f13148b9acdd894f9901a9ecd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{...}: {
  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;
        showUnindexed = true;
        showScores = true;
        # TODO: add this:
        #db_safe_mode = true;
      };
    };
  };
}