summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers/layout_strategies.lua
diff options
context:
space:
mode:
authorelianiva <dicha.arkana03@gmail.com>2021-03-05 20:13:48 +0700
committerGitHub <noreply@github.com>2021-03-05 20:13:48 +0700
commit6e941e0ecec1ab6a1b4ce40c693ef1272c505abb (patch)
tree7d8c273d98909a238cdc7f09b7453bfd8577c443 /lua/telescope/pickers/layout_strategies.lua
parent8369acea3e6b0258f125ea251111e3217655b11c (diff)
feat: define scroll speed + smart_send to qflist (#610)
* smart send to qflist * Previewer scrolling for half window height * Start doing cleanup in readme * feat: add ability to define the scrolling speed * move scrolling action to action.set * docs: added more docs for actions * [docgen] Update doc/telescope.txt skip-checks: true Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de> Co-authored-by: Github Actions <actions@github>
Diffstat (limited to 'lua/telescope/pickers/layout_strategies.lua')
-rw-r--r--lua/telescope/pickers/layout_strategies.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/telescope/pickers/layout_strategies.lua b/lua/telescope/pickers/layout_strategies.lua
index 691ee06..b8d9aea 100644
--- a/lua/telescope/pickers/layout_strategies.lua
+++ b/lua/telescope/pickers/layout_strategies.lua
@@ -53,6 +53,9 @@
---
--- - preview_width:
--- - Change the width of Telescope's preview window
+---
+--- - scroll_speed:
+--- - Change the scrolling speed of the previewer
---@brief ]]
local config = require('telescope.config')
@@ -99,6 +102,7 @@ layout_strategies.horizontal = function(self, max_columns, max_lines)
height_padding = "How many cells to pad the height",
preview_width = "(Resolvable): Determine preview width",
mirror = "Flip the location of the results/prompt and preview windows",
+ scroll_speed = "The speed when scrolling through the previewer",
})
local initial_options = self:_get_initial_window_options()
@@ -266,6 +270,7 @@ layout_strategies.vertical = function(self, max_columns, max_lines)
height_padding = "How many cells to pad the height",
preview_height = "(Resolvable): Determine preview height",
mirror = "Flip the locations of the results and prompt windows",
+ scroll_speed = "The speed when scrolling through the previewer",
})
local initial_options = self:_get_initial_window_options()