summaryrefslogtreecommitdiff
path: root/lua/telescope/config.lua
diff options
context:
space:
mode:
authorReid Swan <reidswan@outlook.com>2023-01-30 23:06:16 +0200
committerGitHub <noreply@github.com>2023-01-30 22:06:16 +0100
commit19ce7f8f24d6cb0d2930ce1eb3096ff14c94fa68 (patch)
tree04b886e2ddfcd984c77166e140aa2b004b8a5af1 /lua/telescope/config.lua
parent5dfd807771dbd68b1b776e489c043337baccf638 (diff)
feat: add support for wrapping history on reaching history begin or end (#2349)
Diffstat (limited to 'lua/telescope/config.lua')
-rw-r--r--lua/telescope/config.lua34
1 files changed, 20 insertions, 14 deletions
diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua
index 9706933..1c573ba 100644
--- a/lua/telescope/config.lua
+++ b/lua/telescope/config.lua
@@ -454,6 +454,7 @@ append(
handler = function(...)
return require("telescope.actions.history").get_simple_history(...)
end,
+ cycle_wrap = false,
},
[[
This field handles the configuration for prompt history.
@@ -469,20 +470,25 @@ append(
},
Fields:
- - path: The path to the telescope history as string.
- Default: stdpath("data")/telescope_history
- - limit: The amount of entries that will be written in the
- history.
- Warning: If limit is set to nil it will grow unbound.
- Default: 100
- - handler: A lua function that implements the history.
- This is meant as a developer setting for extensions to
- override the history handling, e.g.,
- https://github.com/nvim-telescope/telescope-smart-history.nvim,
- which allows context sensitive (cwd + picker) history.
-
- Default:
- require('telescope.actions.history').get_simple_history]]
+ - path: The path to the telescope history as string.
+ Default: stdpath("data")/telescope_history
+ - limit: The amount of entries that will be written in the
+ history.
+ Warning: If limit is set to nil it will grow unbound.
+ Default: 100
+ - handler: A lua function that implements the history.
+ This is meant as a developer setting for extensions to
+ override the history handling, e.g.,
+ https://github.com/nvim-telescope/telescope-smart-history.nvim,
+ which allows context sensitive (cwd + picker) history.
+
+ Default:
+ require('telescope.actions.history').get_simple_history
+ - cycle_wrap: Indicates whether the cycle_history_next and
+ cycle_history_prev functions should wrap around to the
+ beginning or end of the history entries on reaching
+ their respective ends
+ Default: false]]
)
append(