We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64e5906 commit 2ebbf7fCopy full SHA for 2ebbf7f
1 file changed
lua/telescope/builtin/internal.lua
@@ -544,6 +544,9 @@ internal.buffers = function(opts)
544
if opts.ignore_current_buffer and b == vim.api.nvim_get_current_buf() then
545
return false
546
end
547
+ if opts.only_cwd and not string.find(vim.api.nvim_buf_get_name(b), vim.loop.cwd()) then
548
+ return false
549
+ end
550
return true
551
end, vim.api.nvim_list_bufs())
552
if not next(bufnrs) then return end
0 commit comments