summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorDave Lage <rockerboo@gmail.com>2020-09-03 13:27:30 -0400
committerGitHub <noreply@github.com>2020-09-03 13:27:30 -0400
commit318a011be6a23acc734efaab252f78debe73ca11 (patch)
tree2fb1a8437f42ee84b1c73fd883524c7987e1ca0e /lua
parent1ce5eaad7ada8627910d32a1a2daab184e6419e6 (diff)
Add arrow key mappings for insert and normal mode. (#21)
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/pickers.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index ec515c4..23b5917 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -32,6 +32,10 @@ local default_mappings = {
i = {
["<C-n>"] = actions.move_selection_next,
["<C-p>"] = actions.move_selection_previous,
+
+ ["<Down>"] = actions.move_selection_next,
+ ["<Up>"] = actions.move_selection_previous,
+
["<CR>"] = actions.goto_file_selection,
},
@@ -42,6 +46,9 @@ local default_mappings = {
-- TODO: This would be weird if we switch the ordering.
["j"] = actions.move_selection_next,
["k"] = actions.move_selection_previous,
+
+ ["<Down>"] = actions.move_selection_next,
+ ["<Up>"] = actions.move_selection_previous,
},
}