Parcourir la source

Add telescope cycle prompt history keymappings (#909)

hui.liu il y a 4 ans
Parent
commit
6f0c8c20ff
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      lua/core/telescope.lua

+ 2 - 0
lua/core/telescope.lua

@@ -48,6 +48,8 @@ M.config = function()
       -- buffer_previewer_maker = require("telescope.previewers").buffer_previewer_maker,
       mappings = {
         i = {
+          ["<C-n>"] = actions.cycle_history_next,
+          ["<C-p>"] = actions.cycle_history_prev,
           ["<C-c>"] = actions.close,
           ["<C-j>"] = actions.move_selection_next,
           ["<C-k>"] = actions.move_selection_previous,