summaryrefslogtreecommitdiffstats
path: root/modules/by-name/nv/nvim/plgs/telescope/extensions/ext/frecency/default.nix
blob: 83a4ed3d5b667fa8a0da4d93499192a4f12bb9e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# nixos-config - My current NixOS configuration
#
# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This file is part of my nixos-config.
#
# You should have received a copy of the License along with this program.
# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
{...}: {
  home-manager.users.soispha.programs.nixvim = {
    keymaps = [
      {
        key = "gff";
        mode = "n";
        action.__raw = "function() require('telescope').extensions.frecency.frecency() end";
        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'
        };
      };
    };
  };
}