fix: (terminal) buffer previewer (#1120)

Use existing buffers for buffer previewer to allow previewing special buffer types
This commit is contained in:
fdschmidt93
2021-08-23 15:27:11 +02:00
committed by GitHub
parent 03c2b8f6bb
commit 79dc995f82
6 changed files with 129 additions and 30 deletions

View File

@@ -294,9 +294,6 @@ previewers.vimgrep = defaulter(function(opts)
if p == nil or p == "" then
return
end
if entry.bufnr and (p == "[No Name]" or vim.api.nvim_buf_get_option(entry.bufnr, "buftype") ~= "") then
return
end
local lnum = entry.lnum or 0