feat: results scrolling actions (#1436)

This commit is contained in:
Luke Kershaw
2021-11-13 11:15:07 +00:00
committed by GitHub
parent 3d45c6c555
commit bf77c5d2fa
4 changed files with 52 additions and 2 deletions

View File

@@ -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