diff options
| author | Joshua Cao <cao.joshua@yahoo.com> | 2022-04-08 11:09:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-08 20:09:58 +0200 |
| commit | 8af0d384d21104be3cb055494aab9a6f86d94067 (patch) | |
| tree | 09ce320b7c7d16203ef032ba49345bfd9ac1ab66 /lua/telescope/pickers.lua | |
| parent | 317371d37c21216c7042fc7b2e8bf0aeb601bf59 (diff) | |
fix: save position into jumplist before 'edit' action (#1234)
currently enabled for some builtins. You can manually enable it by adding `push_cursor_on_edit = true` to the builtin options. But feel free to open a PR if you find a builtin that needs this option enabled.
Diffstat (limited to 'lua/telescope/pickers.lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index d83d1ba..71089d1 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -110,6 +110,8 @@ function Picker:new(opts) tiebreak = get_default(opts.tiebreak, config.values.tiebreak), selection_strategy = get_default(opts.selection_strategy, config.values.selection_strategy), + push_cursor_on_edit = get_default(opts.push_cursor_on_edit, false), + layout_strategy = layout_strategy, layout_config = config.smarter_depth_2_extend(opts.layout_config or {}, config.values.layout_config or {}), |
