{ 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; }; }; }