From a3344203818658441d176fe279e1978505940432 Mon Sep 17 00:00:00 2001 From: Andrew Fridley <34749972+afridley@users.noreply.github.com> Date: Thu, 12 Aug 2021 00:49:37 -0500 Subject: Please... reverse history and cycle next telescope bindings (#1276) --- utils/installer/config.example-no-ts.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'utils/installer/config.example-no-ts.lua') diff --git a/utils/installer/config.example-no-ts.lua b/utils/installer/config.example-no-ts.lua index 4303d264..b0de00f0 100644 --- a/utils/installer/config.example-no-ts.lua +++ b/utils/installer/config.example-no-ts.lua @@ -14,6 +14,19 @@ lvim.keys.normal_mode[""] = ":w" -- edit a default keymapping -- lvim.keys.normal_mode[""] = ":q" +-- Change Telescope navigation to use j and k for navigation and n and p for history in both input and normal mode. +-- lvim.builtin.telescope.on_config_done = function() +-- local actions = require "telescope.actions" +-- -- for input mode +-- lvim.builtin.telescope.defaults.mappings.i[""] = actions.move_selection_next +-- lvim.builtin.telescope.defaults.mappings.i[""] = actions.move_selection_previous +-- lvim.builtin.telescope.defaults.mappings.i[""] = actions.cycle_history_next +-- lvim.builtin.telescope.defaults.mappings.i[""] = actions.cycle_history_prev +-- -- for normal mode +-- lvim.builtin.telescope.defaults.mappings.n[""] = actions.move_selection_next +-- lvim.builtin.telescope.defaults.mappings.n[""] = actions.move_selection_previous +-- end + -- Use which-key to add extra bindings with the leader-key prefix -- lvim.builtin.which_key.mappings["P"] = { "lua require'telescope'.extensions.project.project{}", "Projects" } -- lvim.builtin.which_key.mappings["t"] = { -- cgit v1.2.3