neorg
neorg copied to clipboard
Heading + Todo + Folding (+ concealer?) = trouble
Prerequisites
- [X] I am using the latest stable release of Neovim
- [X] I am using the latest version of the plugin
Neovim Version
NVIM v0.10.0-dev-1361+g0892c1cd9
Neorg setup
-- neorg support
-- https://github.com/nvim-neorg/neorg
return {
{
"nvim-neorg/neorg",
build = ":Neorg sync-parsers",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
"nvim-tree/nvim-web-devicons",
},
cmd = { 'Neorg', },
ft = { 'norg', },
config = function(_,_)
require("neorg").setup {
load = {
["core.defaults"] = {},
["core.dirman"] = {
config = {
default_workspace = "dev",
workspaces = {
personal = "hidden",
dev = "hidden",
},
},
},
["core.keybinds"] = { -- https://github.com/nvim-neorg/neorg/wiki/User-Keybinds
config = {
hook = function(keybinds)
keybinds.remap_event( "norg", "n", "<C-1>", "core.qol.todo_items.todo.task_cycle" ) -- Like in OneNote
vim.opt.conceallevel = 2
end,
},
},
["core.qol.todo_items"] = {
config = {
order = {
{ "undone", " " },
{ "pending", "-" },
{ "done", "x" },
},
},
},
["core.concealer"] = {},
["core.summary"] = {},
["core.ui.calendar"] = {},
}
}
end,
},
}
Actual behavior
Watch the second-level heading on line 32. In insert mode, as is:
Now in normal mode, concealed. Unfolded - looks OK:
Same heading, folded. Looks BAD:
Expected behavior
Now removing the TODO marker:
Normal, unfolded:
Folded - GOOD:
Steps to reproduce
- Create a heading
- Make it a todo item, let's say done state
- Fold it
The fold description should look very similar to the unfolded version, but in reality I can see both textual representation of TODO items and iconic one, shifted and overwriting the heading text.
Potentially conflicting plugins
No response
Other information
No response
Help
None
Implementation help
No response
I always thought it was becase of wrong unicode handling but it seems like it's because of todo marker with concealer. Anyways, same here, almost always had this bug.
I have the same issue. It makes me avoid using todos in headings. So a bugfix would be very nice.