From 6ac5ee0854fe02d651cadf2fc97a2463ff92f322 Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Mon, 14 Jun 2021 21:50:46 +0200 Subject: feat: cycle previewers with commit and bcommit already using it (#528) - new git previewers - jump to line in bcommit previewer - vimdiff for bcommits - dynamic preview window titles - more previewers documentation Cycle previewers are not mapped yet. So you need to setup yourself: ```lua require('telescope').setup { defaults = { mappings = { i = { [""] = actions.cycle_previewers_next, [""] = actions.cycle_previewers_prev, }, }, } } ``` Co-authored-by: Thore Strassburg --- lua/telescope/make_entry.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/telescope/make_entry.lua') diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua index 9c3ab14..288a471 100644 --- a/lua/telescope/make_entry.lua +++ b/lua/telescope/make_entry.lua @@ -248,8 +248,7 @@ function make_entry.gen_from_git_stash() end end - -function make_entry.gen_from_git_commits() +function make_entry.gen_from_git_commits(opts) local displayer = entry_display.create { separator = " ", items = { @@ -281,7 +280,8 @@ function make_entry.gen_from_git_commits() value = sha, ordinal = sha .. ' ' .. msg, msg = msg, - display = make_display + display = make_display, + current_file = opts.current_file } end end -- cgit v1.2.3