Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

nvim-orgmode/org-bullets.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

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

folded

Pre-requisites

  • This plugin requires the use of treesitter withtree-sitter-org installed
  • neovim 0.7+

Installation

With packer.nvim

use'akinsho/org-bullets.nvim'

Usage

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}

Conceal-based alternative

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors11

Languages


[8]ページ先頭

©2009-2025 Movatter.jp