# nixos-config - My current NixOS configuration # # Copyright (C) 2025 Benedikt Peetz # 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 . { config, lib, ... }: let cfg = config.soispha.programs.nvim; in { home-manager.users.soispha.programs.nixvim.plugins.telescope.settings.defaults = lib.mkIf cfg.enable { mappings = let insert_and_normal_mappings = { # map actions.which_key to (default: ) # actions.which_key shows the mappings for your picker, # e.g. git_{create, delete, ...}_branch for the git_branches picker "" = "which_key"; }; in { i = insert_and_normal_mappings; n = { "t" = "move_selection_next"; "n" = "move_selection_previous"; "" = "toggle_all"; "" = "preview_scrolling_up"; "" = "preview_scrolling_down"; "" = "preview_scrolling_left"; "" = "preview_scrolling_right"; "" = "close"; "q" = "close"; } // insert_and_normal_mappings; }; }; }