Skip to content

aaratha/org-cycle-lite.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

org-cycle-lite.nvim

This plugin replaces default cycling with a simpler version, implementing the org-cycle-only-current-subtree-h functionality of Doom Emacs, disabling the show-all stage of org-cycle.

This forces cycling only between folded → children visible → folded, without revealing the full subtree, which can make browsing notes faster for some workflows.

This plugin is an extension intended for use with nvim-orgmode

Features

  • Toggle fold for the current headline or subheadlines.
  • Works with nvim-orgmode files (*.org).
  • Lightweight and minimal, no subtree expansion by default.
  • Supports configurable keymaps.
  • Compatible with all major Neovim plugin managers.

Installation

Make sure you have nvim-orgmode installed before using this plugin.

Using Lazy.nvim

-- init.lua or plugins.lua
require("lazy").setup({
  "aaratha/org-cycle-lite.nvim",
  config = function()
    require("org-cycle-lite").setup({
      keymap = "<TAB>",  -- Optional: change keymap
    })
  end,
})

Using Packer.nvim

use {
  "aaratha/org-cycle-lite.nvim",
  config = function()
    require("org-cycle-lite").setup({
      keymap = "<TAB>",  -- Optional: change keymap
    })
  end
}

Using Vim-Plug

Plug 'aaratha/org-cycle-lite.nvim'

Then in lua config:

require("org-cycle-lite").setup({
  keymap = "<TAB>",  -- Optional
})

About

A lightweight headline cycling/folding plugin for nvim-orgmode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages