orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

Is there any way to denote folded nodes with `...` instead of the grey highlight

Open lanza opened this issue 4 years ago • 3 comments

I find the the current highlighting setup pretty confusing as a folded level1 has the same color as a folded level2 node yet a different color as an unfolded level1 node. Is there any way to disable this and potentially add emac's typical ... setup?

lanza avatar Nov 03 '21 22:11 lanza

Vim/Neovim doesn't allow having different folding colors per any condition. All folds are colored the same.

kristijanhusak avatar Nov 03 '21 22:11 kristijanhusak

A relevant issue to follow: https://github.com/neovim/neovim/issues/12649

chuwy avatar Nov 04 '21 11:11 chuwy

Folds are denoted with ... now in the tree-sitter branch, or you can configure it with any string set to org_ellipsis in the newest commit. Highlighting however is still limited by Neovim

ourigen avatar Nov 04 '21 16:11 ourigen

You can use https://github.com/kevinhwang91/nvim-ufo until there's built-in support. Just make sure to disable any provider for org filetype:

  require('ufo').setup({
    provider_selector = function(_, filetype)
      if filetype == 'org' then
        return ''
      end
      return { 'treesitter', 'indent' }
    end,
  })

kristijanhusak avatar Nov 26 '22 07:11 kristijanhusak

This now works as expected using master branch and Neovim nightly. screenshot_2024_02_25_18_04_04

kristijanhusak avatar Feb 25 '24 17:02 kristijanhusak