nvim-neorg / neorg-telescope

Telescope.nvim integration for Neorg
GNU General Public License v3.0
187 stars 24 forks source link

Telescope neorg find_linkable did not found links #34

Closed racagogi closed 1 year ago

racagogi commented 1 year ago

plugin versions

telescope neorg find_linkable can not found any links also telescope neorg insert_link excuting nil error. I tested it 1.0-specification.norg file, core.dirman can found my workdir and telescope neorg search_headings and find_norg_files are collectly work.

zackszhu commented 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

LinFight commented 1 year ago

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" } },
  },
...
max397574 commented 1 year ago

the "nilissue " as you called it should be fixed and for me find_linkable works now reopen if this isn't the case