Selaa lähdekoodia

Add telescope cycle prompt history keymappings (#909)

hui.liu 4 vuotta sitten
vanhempi
commit
6f0c8c20ff
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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,