mirror of
https://github.com/nvim-telescope/telescope.nvim
synced 2024-09-16 21:24:02 +02:00
fix: stacking highlights in buffer previewer (#1294)
This commit is contained in:
parent
be600b5421
commit
ec48777990
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue