Skip to content

Commit 260bfa4

Browse files
committed
conceal spaces
1 parent 532b66e commit 260bfa4

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

lua/quicker/config.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ local default_config = {
33
opts = {
44
buflisted = false,
55
number = false,
6+
concealcursor = "nvic",
67
relativenumber = false,
78
signcolumn = "auto",
89
winfixheight = true,

lua/quicker/display.lua

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ function M.quickfixtextfunc(info)
487487
if user_data.header == "hard" then
488488
-- Header when expanded QF list
489489
local pieces = {
490-
string.rep(b.strong_header, col_width + 2),
490+
string.rep(b.strong_header, col_width + 1),
491491
b.strong_cross,
492492
string.rep(b.strong_header, lnum_width),
493493
}
@@ -502,7 +502,7 @@ function M.quickfixtextfunc(info)
502502
elseif user_data.header == "soft" then
503503
-- Soft header when expanded QF list
504504
local pieces = {
505-
string.rep(b.soft_header, col_width + 2),
505+
string.rep(b.soft_header, col_width + 1),
506506
b.soft_cross,
507507
string.rep(b.soft_header, lnum_width),
508508
}
@@ -578,6 +578,10 @@ function M.quickfixtextfunc(info)
578578
virt_text_pos = "inline",
579579
invalidate = true,
580580
})
581+
vim.api.nvim_buf_set_extmark(qf_list.qfbufnr, ns, lnum - 1, end_col, {
582+
end_col = end_col + EM_QUAD_LEN - 1,
583+
conceal = "",
584+
})
581585
idmap[id] = lnum
582586

583587
-- Highlight the filename
@@ -598,6 +602,10 @@ function M.quickfixtextfunc(info)
598602
virt_lines = { header },
599603
virt_lines_above = true,
600604
})
605+
-- vim.api.nvim_buf_set_extmark(qf_list.qfbufnr, ns, lnum - 1, end_col, {
606+
-- end_col = end_col + EM_QUAD_LEN - 1,
607+
-- conceal = "",
608+
-- })
601609
end
602610
end
603611
end

0 commit comments

Comments
 (0)