All Projects → akinsho → org-bullets.nvim

akinsho / org-bullets.nvim

Licence: AGPL-3.0 license
No description or website provided.

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to org-bullets.nvim

venn.nvim
Draw ASCII diagrams in Neovim
Stars: ✭ 539 (+829.31%)
Mutual labels:  nvim
dotfiles
files that start . and makes my Linux box awesome.
Stars: ✭ 57 (-1.72%)
Mutual labels:  nvim
crates.nvim
A neovim plugin that helps managing crates.io dependencies
Stars: ✭ 252 (+334.48%)
Mutual labels:  nvim
comment-box.nvim
✨ Clarify and beautify your comments using boxes and lines.
Stars: ✭ 91 (+56.9%)
Mutual labels:  nvim
tmuxjump.vim
A plugin to open file from file paths printed in sibling tmux pane
Stars: ✭ 50 (-13.79%)
Mutual labels:  nvim
vim-cutlass
Plugin that adds a 'cut' operation separate from 'delete'
Stars: ✭ 134 (+131.03%)
Mutual labels:  nvim
zk-nvim
Neovim extension for zk
Stars: ✭ 207 (+256.9%)
Mutual labels:  nvim
dotfiles
🍀 Vim/Neovim + Tmux + Zsh + Alacritty = Build your own fantastic development environment
Stars: ✭ 65 (+12.07%)
Mutual labels:  nvim
bolt.nvim
⚡ Ultrafast multi-pane file manager for Neovim with fuzzy matching
Stars: ✭ 100 (+72.41%)
Mutual labels:  nvim
aerial.nvim
Neovim plugin for a code outline window
Stars: ✭ 485 (+736.21%)
Mutual labels:  nvim
vim-lamp
💡Language Server Protocol client for Vim.
Stars: ✭ 34 (-41.38%)
Mutual labels:  nvim
Dot-It-Up
A collection of dotfile scripts, plugins, and clever hacks so that you can become the master of your own OS! 🚀
Stars: ✭ 254 (+337.93%)
Mutual labels:  nvim
nord.nvim
Neovim theme based off of the Nord Color Palette, written in lua with tree sitter support
Stars: ✭ 412 (+610.34%)
Mutual labels:  nvim
feline.nvim
A minimal, stylish and customizable statusline for Neovim written in Lua
Stars: ✭ 867 (+1394.83%)
Mutual labels:  nvim
stabilize.nvim
Neovim plugin to stabilize window open/close events.
Stars: ✭ 295 (+408.62%)
Mutual labels:  nvim
nvim-remote-containers
Develop inside docker containers, just like VSCode
Stars: ✭ 340 (+486.21%)
Mutual labels:  nvim
cutlass.nvim
Plugin that adds a 'cut' operation separate from 'delete'
Stars: ✭ 78 (+34.48%)
Mutual labels:  nvim
virtual-types.nvim
Neovim plugin that shows type annotations as virtual text
Stars: ✭ 171 (+194.83%)
Mutual labels:  nvim
dotfiles
Configuration files for my setup
Stars: ✭ 24 (-58.62%)
Mutual labels:  nvim
telescope-repo.nvim
🦘 Jump into the repositories (git, mercurial…) of your filesystem with telescope.nvim, without any setup
Stars: ✭ 99 (+70.69%)
Mutual labels:  nvim

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 = {
      -- 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 = {
        cancelled = { "", "OrgCancelled" },
        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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].