Skip to content
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

Concealer error with delimiters when using :Neorg gtd edit #661

Closed
2 tasks done
VPerrollaz opened this issue Nov 16, 2022 · 2 comments
Closed
2 tasks done

Concealer error with delimiters when using :Neorg gtd edit #661

VPerrollaz opened this issue Nov 16, 2022 · 2 comments
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@VPerrollaz
Copy link

Prerequisites

  • I am using either 0.7 stable with the 0.0.12 tag or the latest compiled Neovim version
  • I am using the latest version of the plugin

Neovim Version

NVIM v0.8.0

Neorg setup

require("neorg").setup({
load = {
["core.defaults"] = {},
["core.export"] = {},
["core.keybinds"] = {
config = {
hook = function(keybinds)
local leader = keybinds.leader
keybinds.unmap("norg", "n", leader .. "tc")
keybinds.unmap("norg", "n", leader .. "te")
keybinds.unmap("norg", "n", leader .. "tv")
keybinds.unmap("norg", "n", leader .. "mh")
keybinds.unmap("norg", "n", leader .. "mn")
keybinds.map_event_to_mode("norg", {
n = {
{ "", "core.integrations.telescope.find_linkable" },
},
i = {
{ "iii", "core.integrations.telescope.insert_link" },
},
}, {
silent = true,
noremap = true,
})
keybinds.map_event_to_mode("norg", {
n = {
{ "nl", "core.looking-glass.magnify-code-block" },
},
}, {
silent = true,
noremap = true,
})
end,
},
},
["core.norg.dirman"] = {
config = {
workspaces = {
brainstorming = "/home/vincent/Seafile/Organisation/notes/brainstorming",
documentation_installation = "/home/vincent/Seafile/Organisation/notes/documentation_installation",
gtd = "/home/vincent/Seafile/Organisation/notes/gtd",
journal = "/home/vincent/Seafile/Organisation/notes/journal",
zettelkasten = "/home/vincent/Seafile/Organisation/notes/zk",
},
},
},
["core.norg.qol.toc"] = {},
["core.norg.concealer"] = {},
["core.integrations.telescope"] = {},
["core.norg.completion"] = {
config = {
engine = "nvim-cmp",
},
},
["core.gtd.base"] = {
config = {
workspace = "gtd",
},
},
["core.presenter"] = {
config = {
zen_mode = "zen-mode",
},
},
["core.norg.journal"] = {
config = {
workspace = "journal",
},
},
},
})

Actual behavior

With a minimal norg file

#time.start 2022-11-21
- [ ] task

* Section
  content
  ===

When using :Neorg gtd edit with cursor on task to change the date I get the following error

Error executing vim.schedule lua callback: ...t/neorg/lua/neorg/modules/core/norg/concealer/module.lua:1623: attempt to index local 'text' (a nil value)                                                          
stack traceback:                                                                                                                                                                                                  
        ...t/neorg/lua/neorg/modules/core/norg/concealer/module.lua:1623: in function 'render'                                                                                                                    
        ...t/neorg/lua/neorg/modules/core/norg/concealer/module.lua:220: in function 'func'                                                                                                                       
        ...t/neorg/lua/neorg/modules/core/norg/concealer/module.lua:67: in function <...t/neorg/lua/neorg/modules/core/norg/concealer/module.lua:56>

I confirmed by checking out the last commits that it was introduced by commit 992526c (i.e. ref!: don't schedule Neorg events)

Expected behavior

No such error...

Steps to reproduce

See description above...

Potentially conflicting plugins

No response

Other information

No response

Help

No

Implementation help

No response

@VPerrollaz VPerrollaz added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Nov 16, 2022
@VPerrollaz
Copy link
Author

I also realize that the keybindings connected to core.norg.qol.todo_items.todo don't work either, starting from this particular commit

@danymat
Copy link
Member

danymat commented Dec 23, 2022

For reference: #695

@danymat danymat closed this as completed Dec 23, 2022
@danymat danymat closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.
Projects
None yet
Development

No branches or pull requests

2 participants