fix: revert buffers previewer (#1400)

* Reverts #1120 many issues arise (mru, highlighting, settings inheritance, ...) when previewing actual buffers
This commit is contained in:
fdschmidt93
2021-11-04 07:55:32 +01:00
committed by GitHub
parent 2097f11305
commit 97842abb03
5 changed files with 19 additions and 127 deletions

View File

@@ -274,6 +274,9 @@ 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