Closed racagogi closed 1 year ago
I'm having a similar issue. telescope neorg find_linkable
works for me but telescope neorg insert_link
shows nil error.
Error message:
Error executing Lua callback: ...scope.nvim/lua/telescope/finders/async_static_finder.lua:16: bad argument #1 to 'ipairs' (table expected, got nil)
stack traceback:
[C]: in function 'ipairs'
...scope.nvim/lua/telescope/finders/async_static_finder.lua:16: in function 'new_table'
...elescope/lua/telescope/_extensions/neorg/insert_link.lua:106: in function 'insert_link'
...lua/neorg/modules/core/integrations/telescope/module.lua:53: in function 'on_event'
...jiezhu/.local/share/nvim/lazy/neorg/lua/neorg/events.lua:153: in function 'broadcast_event'
...im/lazy/neorg/lua/neorg/modules/core/keybinds/module.lua:445: in function <...im/lazy/neorg/lua/neorg/modules/core/keybinds/module.lua:430>
...im/lazy/neorg/lua/neorg/modules/core/keybinds/module.lua:429: in function 'on_event'
...jiezhu/.local/share/nvim/lazy/neorg/lua/neorg/events.lua:153: in function 'broadcast_event'
...im/lazy/neorg/lua/neorg/modules/core/neorgcmd/module.lua:289: in function <...im/lazy/neorg/lua/neorg/modules/core/neorgcmd/module.lua:196>
NeoVim: 0.9.0
telescope: 6258d50
neorg: f742e90
neorg-telescope: 787f95c
i'm having a similar issue and the same error message,and this is my lazy config.
...
{
"nvim-neorg/neorg",
build = ":Neorg sync-parsers",
lazy = false,
-- ft="norg",
opts = {
load = {
["core.defaults"] = {}, -- Loads default behaviour
["core.concealer"] = {}, -- Adds pretty icons to your documents
["core.dirman"] = { -- Manages Neorg workspaces
config = {
workspaces = {
notes = "~/notes/neorg",
},
default_workspace = "notes",
},
},
["core.esupports.metagen"] = {
config = {
type = "auto",
},
},
["core.integrations.telescope"] = {},
},
},
dependencies = { { "nvim-lua/plenary.nvim" }, { "nvim-neorg/neorg-telescope" } },
},
...
the "nil
issue " as you called it should be fixed
and for me find_linkable
works now
reopen if this isn't the case
plugin versions
telescope neorg find_linkable
can not found any links alsotelescope neorg insert_link
excuting nil error. I tested it 1.0-specification.norg file, core.dirman can found my workdir andtelescope neorg search_headings
andfind_norg_files
are collectly work.