Skip to content

Commit

Permalink
feat: support more than a single character in bullets
Browse files Browse the repository at this point in the history
  • Loading branch information
f4z3r authored and lukas-reineke committed Sep 3, 2024
1 parent 618ef1b commit 7671eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/headlines/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ M.refresh = function()
local virt_text = {}
if c.bullets and #c.bullets > 0 then
local bullet = c.bullets[((level - 1) % #c.bullets) + 1]
virt_text[1] = { string.rep(" ", level - 1) .. bullet, { hl_group, bullet_hl_group } }
virt_text[1] = { string.rep(" ", level - vim.fn.strwidth(bullet)) .. bullet, { hl_group, bullet_hl_group } }
end

nvim_buf_set_extmark(bufnr, M.namespace, start_row, 0, {
Expand Down

0 comments on commit 7671eec

Please sign in to comment.