diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2020-12-09 16:58:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-09 16:58:22 +0100 |
| commit | c276db06e2981416995450a4198cef4b87170f6f (patch) | |
| tree | ebd94e797892e197c7e30f082aaf93e28ba0d5c2 /lua/telescope/builtin/git.lua | |
| parent | d1c15dc2657c4bdec50f9cc7ad76c4dc182e8cc9 (diff) | |
Feat: Opt in vim buffers for previewers (#298)
Enable with:
require('telescope').setup {
defaults = {
file_previewer = previewers.vim_buffer_cat.new,
grep_previewer = previewers.vim_buffer_vimgrep.new,
qflist_previewer = previewers.vim_buffer_qflist.new,
}
}
Diffstat (limited to 'lua/telescope/builtin/git.lua')
| -rw-r--r-- | lua/telescope/builtin/git.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua index 2122fb9..06779ea 100644 --- a/lua/telescope/builtin/git.lua +++ b/lua/telescope/builtin/git.lua @@ -22,7 +22,7 @@ git.files = function(opts) { "git", "ls-files", "--exclude-standard", "--cached", show_untracked and "--others" }, opts ), - previewer = previewers.cat.new(opts), + previewer = conf.file_previewer(opts), sorter = conf.file_sorter(opts), }):find() end |
