Explorar o código

Add telescope cycle prompt history keymappings (#909)

hui.liu %!s(int64=4) %!d(string=hai) anos
pai
achega
6f0c8c20ff
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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,