From 7d1a8292b6c7db7401af05f75e6d9992fc8ed28a Mon Sep 17 00:00:00 2001 From: haorenW1025 Date: Thu, 17 Sep 2020 00:20:45 +0800 Subject: feat: add scrolling in preview window (#47) * feat: add scrolling in preview window refactor into two layers * remove redundant code * add error message for scroll_fn and send_input * consider count for preview scrolling --- lua/telescope/pickers.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lua/telescope/pickers.lua') diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 66973f7..bf88b63 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -42,6 +42,9 @@ local default_mappings = { [""] = actions.goto_file_selection_split, [""] = actions.goto_file_selection_vsplit, [""] = actions.goto_file_selection_tabedit, + + [""] = actions.preview_scrolling_up, + [""] = actions.preview_scrolling_down, }, n = { @@ -57,6 +60,9 @@ local default_mappings = { [""] = actions.move_selection_next, [""] = actions.move_selection_previous, + + [""] = actions.preview_scrolling_up, + [""] = actions.preview_scrolling_down, }, } -- cgit v1.2.3