mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2025-12-06 06:46:10 +00:00
fix: stacking highlights in buffer previewer (#1294)
This commit is contained in:
@@ -1124,8 +1124,9 @@ previewers.buffers = defaulter(function(opts)
|
|||||||
-- only set if winid and rows are matching
|
-- only set if winid and rows are matching
|
||||||
pcall(vim.api.nvim_buf_set_extmark, bufnr, ns_previewer, lnum - 1, 0, {
|
pcall(vim.api.nvim_buf_set_extmark, bufnr, ns_previewer, lnum - 1, 0, {
|
||||||
end_col = #line,
|
end_col = #line,
|
||||||
|
virt_text = { { line, "TelescopePreviewLine" } },
|
||||||
virt_text_pos = "overlay",
|
virt_text_pos = "overlay",
|
||||||
hl_group = "TelescopePreviewLine",
|
hl_mode = "combine",
|
||||||
ephemeral = true,
|
ephemeral = true,
|
||||||
priority = 101, -- 1 higher than treesitter
|
priority = 101, -- 1 higher than treesitter
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user