This plugin is a clone of org-bullets. It replaces the asterisks in org syntax with unicode characters.
This plugin is an extension intended for use with orgmode.nvim
status: experimental
This plugin works by using neovim extmarks
, rather than conceal
for a few reasons.
- conceal can only have one global highlight see
:help hl-Conceal
. - conceal doesn't work when a block is folded.
see below for a simpler conceal-based solution
- neovim 0.5+
use {"akinsho/org-bullets.nvim", config = function()
require("org-bullets").setup {
symbols = { "◉", "○", "✸", "✿" }
-- or a function that receives the defaults and returns a list
symbols = function(default_list)
table.insert(default_list, "♥")
return default_list
end
}
end}
A simpler conceal based alternative is:
syntax match OrgHeadlineStar1 /^\*\ze\s/me=e-1 conceal cchar=◉ containedin=OrgHeadlineLevel1 contained
syntax match OrgHeadlineStar2 /^\*\{2}\ze\s/me=e-1 conceal cchar=○ containedin=OrgHeadlineLevel2 contained
syntax match OrgHeadlineStar3 /^\*\{3}\ze\s/me=e-1 conceal cchar=✸ containedin=OrgHeadlineLevel3 contained
syntax match OrgHeadlineStar4 /^\*{4}\ze\s/me=e-1 conceal cchar=✿ containedin=OrgHeadlineLevel4 contained
- Add some degree of concealcursor-like behaviour