summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-09-11 15:28:32 -0400
committerTJ DeVries <devries.timothyj@gmail.com>2020-09-11 15:28:32 -0400
commitf47f1dc03712bf49bf278e103e5196a09c5a6210 (patch)
treea4507c4e9152fe60e2a5646c27af6eb4e7fd03c1 /lua/telescope/builtin.lua
parenta9404201a9ea3170d9b12620024602ed58750b1f (diff)
feat: make buffer work much better
Diffstat (limited to 'lua/telescope/builtin.lua')
-rw-r--r--lua/telescope/builtin.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/telescope/builtin.lua b/lua/telescope/builtin.lua
index 794f5b0..58f1bbc 100644
--- a/lua/telescope/builtin.lua
+++ b/lua/telescope/builtin.lua
@@ -350,10 +350,9 @@ end
-- Leave this alias around for people.
builtin.fd = builtin.find_files
--- TODO: Sometimes some window options (for me, I've experience number & relativenumber)
--- don't work when we open this up.
+-- TODO: I'd like to use the `vim_buffer` previewer, but it doesn't seem to work due to some styling problems.
-- I think it has something to do with nvim_open_win and style='minimal',
--- but I can't figure that part out at the moment...
+-- Status, currently operational.
builtin.buffers = function(opts)
opts = opts or {}
@@ -370,7 +369,8 @@ builtin.buffers = function(opts)
results = buffers,
entry_maker = make_entry.gen_from_buffer(opts)
},
- previewer = previewers.vim_buffer.new(opts),
+ -- previewer = previewers.vim_buffer.new(opts),
+ previewer = previewers.vimgrep.new(opts),
sorter = sorters.get_generic_fuzzy_sorter(),
}):find()
end