mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(picker.diff): make diff filename extmarks play nicely with markview / markdown-renderer
This commit is contained in:
parent
c6ab18964b
commit
4f749ab355
1 changed files with 2 additions and 0 deletions
|
|
@ -174,6 +174,8 @@ function M.format_block_header(ctx)
|
|||
local icon, icon_hl = Snacks.util.icon(block.file)
|
||||
local file = {} ---@type snacks.picker.Highlight[]
|
||||
file[#file + 1] = { " " }
|
||||
-- needed to play nice with markview / markdown-renderer
|
||||
file[#file + 1] = { col = 0, virt_text = { { " ", "SnacksDiffHeader" } }, virt_text_pos = "overlay" }
|
||||
file[#file + 1] = { icon, icon_hl, inline = true }
|
||||
file[#file + 1] = { " " }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue