Skip to content

Commit

Permalink
fix: stacking highlights in buffer previewer (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdschmidt93 authored Oct 4, 2021
1 parent be600b5 commit ec48777
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/telescope/previewers/buffer_previewer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit ec48777

Please sign in to comment.