• Stars
    star
    113
  • Rank 310,115 (Top 7 %)
  • Language
    Lua
  • License
    GNU Affero Genera...
  • Created over 3 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Org-bullets.nvim

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

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

folded

Pre-requisites

  • This plugin requires the use of treesitter with tree-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: Do NOT 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 visible
    symbols = {
      -- list symbol
      list = "β€’",
      -- headlines can be a list
      headlines = { "β—‰", "β—‹", "✸", "✿" },
      -- or a function that receives the defaults and returns a list
      headlines = function(default_list)
        table.insert(default_list, "β™₯")
        return default_list
      end,
      checkboxes = {
        half = { "ο‡Έ", "OrgTSCheckboxHalfChecked" },
        done = { "βœ“", "OrgDone" },
        todo = { "˟", "OrgTODO" },
      },
    }
  }
end}

Conceal-based alternative

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

More Repositories

1

toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
Lua
4,352
star
2

bufferline.nvim

A snazzy bufferline for Neovim
Lua
3,497
star
3

flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp
Lua
987
star
4

git-conflict.nvim

A plugin to visualise and resolve merge conflicts in neovim
Lua
981
star
5

dotfiles

🏑 dotfiles
Lua
235
star
6

horizon.nvim

Horizon Theme - Neovim Edition πŸŒ…
Lua
45
star
7

dependency-assist.nvim

A neovim plugin to help find/search for dependency information/versions
Lua
44
star
8

pubspec-assist.nvim

Lua
25
star
9

gitgazer

A CLI app that lets you keep track of developments in your favourite repos on Github
Go
11
star
10

clock.nvim

A neovim plugin to show a timer in a floating window
Lua
10
star
11

oni-theme-night-owl

Night Owl - Onivim Editor theme
Vim Script
6
star
12

algorhythms

Rust
3
star
13

portfolio

Personal Portfolio aka the doings
OCaml
3
star
14

react-event-planner

⏰⏳ React to Time
JavaScript
2
star
15

phoenix-kitty

A go script to save the current kitty state to a session file
Go
2
star
16

vim-dune

Syntax File for Dune
Vim Script
2
star
17

Oni_the_guification_of_neovim

Vim Conf 18 Talk Slides
JavaScript
2
star
18

postgres-workshop

Postgres Workshop
JavaScript
2
star
19

go-game-of-life

The Game of Life in Go using the Ebiten library
Go
2
star
20

gopher

Go
1
star
21

Monzoid

JavaScript
1
star
22

express-handlebars-week

1
star
23

oni-plugin-eslint

An ESLint plugin for Oni vim
JavaScript
1
star
24

clojure-counter

A Stunningly simplistic clojure counter and clock
Clojure
1
star
25

Tips-and-Tricks

A repository of aforementioned tips and tricks
1
star
26

Akins-Pocket

My Bespoke Version of Pocket
JavaScript
1
star
27

lightline-statuslinetabs

A Vim plugin to show tabs in the Lightline Statusline
Vim Script
1
star
28

game-of-life

James Conway's Game of Life [WIP!!]
JavaScript
1
star
29

human-phenotype-challenge

A Visualisation of the Human Phenotype Ontology
JavaScript
1
star
30

week8-PA-Github-pajes

The real Github Pajes the other fork is unauthorised, okay thanks
JavaScript
1
star
31

all-of-fac

An App designed with React to visualise all the members of Founders and Coders
JavaScript
1
star
32

rota-app

Scheduling and rota management React app
JavaScript
1
star
33

ctrl-grp-api

An NodeJS API for the ctrl-grp challenge (link to demo ->)
JavaScript
1
star