-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with nvim-ufo #599
Comments
Experiencing same issue |
It's reproducible yes. Note I face this issue in general when using nvim-ufo. |
This is really an issue with UFO in some aspects. A good work around is to disable UFO in org buffers. I ran into this myself just now while migrating to orgmode. Here's how I disable UFO in certain buffers: local ft_options = {
norg = "", -- Neorg had the same issue
org = "" -- We "disable" ufo in org files by giving back an empty provider to UFO
}
require('ufo').setup({
provider_selector = function(_, filetype, _)
return ft_options[filetype] or { "treesitter", "indent" }
end,
}) I still get folding in |
@treatybreaker This didn't solve the issue on #614 Thanks for sharing anyway! vim.cmd [[setlocal nofoldenable]] -- No folds initially disables folds. You can use it with an autocmd. |
It still seems as though UFO's folds are much superior to what we get out the gate with orgmode here.
Somewhat frustrating, I think I'll set aside some time later to find the root cause. |
Hey @Zhou-Yicheng, @UTFeight, @m3xan1k, With the merging of #615 UFO should play nice with Orgmode if you set require("orgmode").setup({
-- ...
org_startup_folded = "inherit"
}) Give it a shot, that fixes UFO issues for me. |
The issue solved! |
Describe the bug
Fold automatically every time type
ESC
in insert modeSteps to reproduce
:TSUpdate org
ESC
Expected behavior
Back to normal mode without folding
Emacs functionality
No response
Minimal init.lua
Screenshots and recordings
No response
OS / Distro
Gentoo 2.14
Neovim version/commit
v0.9.1
Additional context
No response
The text was updated successfully, but these errors were encountered: