fix: stacking highlights in buffer previewer (#1294)

This commit is contained in:
fdschmidt93 2021-10-04 22:35:22 +02:00 committed by GitHub
parent be600b5421
commit ec48777990
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1124,8 +1124,9 @@ previewers.buffers = defaulter(function(opts)
-- only set if winid and rows are matching
pcall(vim.api.nvim_buf_set_extmark, bufnr, ns_previewer, lnum - 1, 0, {
end_col = #line,
virt_text = { { line, "TelescopePreviewLine" } },
virt_text_pos = "overlay",
hl_group = "TelescopePreviewLine",
hl_mode = "combine",
ephemeral = true,
priority = 101, -- 1 higher than treesitter
})