Open ashincoder opened 3 years ago
How does emacs behave for you when you do not use the org-bullets
plugin? I'm just trying to figure out if there is an emacs specific setting for this, or it is part of the org-bullets
plugin.
This is how it works for me in emacs without the org-bullets
plugin:
The org-bullets work if the builtin orgmode identifies it as a bullet. The only thing org-bullets does is if orgmode realises it as a sub heading then org-bullets converts it into a nice bullets
@ashincoder Here's the vimL chunk to make this work for now:
Add this to your after/indent/org.vim
:
function! CustomOrgIndent() abort
let line = getline(v:lnum)
if match(line, '^\s\+\*\+\s*$') > -1
return 0
endif
return OrgmodeIndentExpr()
endfunction
setlocal indentkeys+=<*>
setlocal indentexpr=CustomOrgIndent()
here is a bug I think related to this. Two issues, may be the same problem. (I have the viml chunk as well). The two issues are
*
I add switches it from header indent to text indent (even is text indent, maybe tree sitter is treating is as "bold text" or something.==
in normal mode toggles it to be a header or text indentation@aareman code chunk from my last comment might be outdated. I did some updates to indentation in the meantime. Generally this issue is for the "no indent" or "virtual indent" mode, where code above was just a hackish way to achieve something similar.
Even though it's still experimental, this can be achieved with virtual indentation https://github.com/nvim-orgmode/orgmode/blob/master/DOCS.md#org_startup_indented
Describe the bug
In emacs after a main heading there is an indent. Even within the indent the a sub heading can be made. But in orgmode.nvim it can't. U will understand with the video rec below.
Steps to reproduce
Expected behavior
It should move into a bullet or subheading no matter where the indent.
Emacs functionality
It can move into a bullet no matter what
Screenshots and recordings
https://user-images.githubusercontent.com/83629316/131207392-20e22f32-ab65-4793-8b52-b26fdc33ed02.mp4
OS / Distro
ArchLinux
Neovim version/commit
NVIM 0.5.0
Additional context
No response