diff options
| author | fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com> | 2021-11-04 07:55:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-04 07:55:32 +0100 |
| commit | 97842abb038798ee51dd1f6bceb2f928f04a4c31 (patch) | |
| tree | 637ce77fa0d5a3a7c1b9a0b52f45890a00db763d /lua/telescope/builtin/internal.lua | |
| parent | 2097f11305598bd88f799a76f5549da57f852a58 (diff) | |
fix: revert buffers previewer (#1400)
* Reverts #1120 many issues arise (mru, highlighting, settings inheritance, ...) when previewing actual buffers
Diffstat (limited to 'lua/telescope/builtin/internal.lua')
| -rw-r--r-- | lua/telescope/builtin/internal.lua | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua index f95e0e5..d043bb7 100644 --- a/lua/telescope/builtin/internal.lua +++ b/lua/telescope/builtin/internal.lua @@ -779,18 +779,9 @@ internal.buffers = function(opts) results = buffers, entry_maker = opts.entry_maker or make_entry.gen_from_buffer(opts), }, - previewer = previewers.buffers.new(opts), + previewer = conf.grep_previewer(opts), sorter = conf.generic_sorter(opts), default_selection_index = default_selection_idx, - attach_mappings = function(_, _) - action_set.select:enhance { - post = function() - local selection = action_state.get_selected_entry() - vim.api.nvim_win_set_cursor(0, { selection.lnum, selection.col or 0 }) - end, - } - return true - end, }):find() end |
