orgmode
orgmode copied to clipboard
Is there any way to denote folded nodes with `...` instead of the grey highlight
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?
Vim/Neovim doesn't allow having different folding colors per any condition. All folds are colored the same.
A relevant issue to follow: https://github.com/neovim/neovim/issues/12649
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
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,
})
This now works as expected using master branch and Neovim nightly.