diff options
| author | Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> | 2021-11-13 11:15:07 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-13 11:15:07 +0000 |
| commit | bf77c5d2fab49cf932c9ebfc98be3b7ce2ac3bad (patch) | |
| tree | 1a568b4e3d177dca703faa978262fd31deaea765 /lua/telescope/actions/init.lua | |
| parent | 3d45c6c55537c8c95a6b2ea8653f5a491131def7 (diff) | |
feat: results scrolling actions (#1436)
Diffstat (limited to 'lua/telescope/actions/init.lua')
| -rw-r--r-- | lua/telescope/actions/init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index 5ff24cb..e87bac6 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -152,6 +152,14 @@ function actions.preview_scrolling_down(prompt_bufnr) action_set.scroll_previewer(prompt_bufnr, 1) end +function actions.results_scrolling_up(prompt_bufnr) + action_set.scroll_results(prompt_bufnr, -1) +end + +function actions.results_scrolling_down(prompt_bufnr) + action_set.scroll_results(prompt_bufnr, 1) +end + function actions.center(_) vim.cmd ":normal! zz" end |
