- Notifications
You must be signed in to change notification settings - Fork19
License
NotificationsYou must be signed in to change notification settings
nvim-orgmode/org-bullets.nvim
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This plugin is a clone oforg-bullets.It replaces the asterisks in org syntax with unicode characters.
This plugin is an extension intended for use withorgmode.nvim
This plugin works by using neovimextmarks, rather thanconceal 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
- This plugin requires the use of treesitter with
tree-sitter-orginstalled - neovim 0.7+
use'akinsho/org-bullets.nvim'
To use the defaults use:
use {'akinsho/org-bullets.nvim',config=function()require('org-bullets').setup()end}
The full options available are:
NOTE: DoNOT copy and paste this block as it is not valid, it is just intended to show the available configuration options
use {"akinsho/org-bullets.nvim",config=function()require("org-bullets").setup {concealcursor=false,-- If false then when the cursor is on a line underlying characters are visiblesymbols= {-- list symbollist="•",-- headlines can be a listheadlines= {"◉","○","✸","✿"},-- or a function that receives the defaults and returns a listheadlines=function(default_list)table.insert(default_list,"♥")returndefault_listend,-- or false to disable the symbol. Works for all symbolsheadlines=false,-- or a table of tables that provide a name-- and (optional) highlight group for each headline levelheadlines= { {"◉","MyBulletL1"} {"○","MyBulletL2"}, {"✸","MyBulletL3"}, {"✿","MyBulletL4"}, },checkboxes= {half= {"","@org.checkbox.halfchecked"},done= {"✓","@org.keyword.done"},todo= {"˟","@org.keyword.todo"}, }, } }end}
A simpler conceal based alternative is:
syntaxmatchOrgHeadlineStar1/^\*\ze\s/me=e-1concealcchar=◉containedin=OrgHeadlineLevel1containedsyntaxmatchOrgHeadlineStar2/^\*\{2}\ze\s/me=e-1concealcchar=○containedin=OrgHeadlineLevel2containedsyntaxmatchOrgHeadlineStar3/^\*\{3}\ze\s/me=e-1concealcchar=✸containedin=OrgHeadlineLevel3containedsyntaxmatchOrgHeadlineStar4/^\*{4}\ze\s/me=e-1concealcchar=✿containedin=OrgHeadlineLevel4contained
About
No description or website provided.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Contributors11
Uh oh!
There was an error while loading.Please reload this page.
