|
@@ -14,6 +14,19 @@ lvim.keys.normal_mode["<C-s>"] = ":w<cr>"
|
|
-- edit a default keymapping
|
|
-- edit a default keymapping
|
|
-- lvim.keys.normal_mode["<C-q>"] = ":q<cr>"
|
|
-- lvim.keys.normal_mode["<C-q>"] = ":q<cr>"
|
|
|
|
|
|
|
|
+-- 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["<C-j>"] = actions.move_selection_next
|
|
|
|
+-- lvim.builtin.telescope.defaults.mappings.i["<C-k>"] = actions.move_selection_previous
|
|
|
|
+-- lvim.builtin.telescope.defaults.mappings.i["<C-n>"] = actions.cycle_history_next
|
|
|
|
+-- lvim.builtin.telescope.defaults.mappings.i["<C-p>"] = actions.cycle_history_prev
|
|
|
|
+-- -- for normal mode
|
|
|
|
+-- lvim.builtin.telescope.defaults.mappings.n["<C-j>"] = actions.move_selection_next
|
|
|
|
+-- lvim.builtin.telescope.defaults.mappings.n["<C-k>"] = actions.move_selection_previous
|
|
|
|
+-- end
|
|
|
|
+
|
|
-- Use which-key to add extra bindings with the leader-key prefix
|
|
-- Use which-key to add extra bindings with the leader-key prefix
|
|
-- lvim.builtin.which_key.mappings["P"] = { "<cmd>lua require'telescope'.extensions.project.project{}<CR>", "Projects" }
|
|
-- lvim.builtin.which_key.mappings["P"] = { "<cmd>lua require'telescope'.extensions.project.project{}<CR>", "Projects" }
|
|
-- lvim.builtin.which_key.mappings["t"] = {
|
|
-- lvim.builtin.which_key.mappings["t"] = {
|