nvim-neorg / neorg

Modernity meets insane extensibility. The future of organizing your life in Neovim.
GNU General Public License v3.0
6.35k stars 209 forks source link

Link to file not recognized anymore #281

Closed danymat closed 2 years ago

danymat commented 2 years ago

Prerequisites

Neovim Version

NVIM v0.7.0-dev+763-gd2f62b316

Neorg setup

require("neorg").setup({
    load = {
        ["core.defaults"] = {},
        ["core.keybinds"] = {
            config = {
                default_keybinds = true,
                neorg_leader = "<Leader>o",
            },
        },
        ["core.norg.concealer"] = {
            config = {
                icon_preset = "diamond",
            },
        }, -- Allows for use of icons
        ["core.norg.dirman"] = { -- Manage your directories with Neorg
            config = {
                workspaces = {
                    gtd = "~/Documents/000 Meta/00.03 gtd",
                    work = "~/Documents/000 Meta/00.04 work/",
                    insa = "~/Documents/101 Personnel/40-49 Insa/46 5A/101.46.00 Notes",
                    hack = "~/Documents/000 Meta/00.05 hack",
                },
            },
        },

        ["core.gtd.base"] = {
            config = {
                workspace = "gtd",
                -- workspace = "test",
                exclude = { "gtd.norg", "neogen.norg", "kenaos.norg" },
                -- custom_tag_completion = true,
            },
        },
        ["core.presenter"] = {
            config = {
                zen_mode = "truezen",
            },
        },

        ["core.integrations.telescope"] = {},
        ["core.norg.completion"] = {
            config = {
                engine = "nvim-cmp",
            },
        },
        -- ["core.zettelkasten"] = {},
        ["core.norg.journal"] = {},
        ["core.norg.qol.toc"] = {},
        -- ["core.norg.snippet"] = {}
    },
    -- logger = {
    --  level = "info", -- Show trace, info, warning, error and fatal messages
    -- },
})

Actual behavior

- {:neorg:} Is not hoping to the neorg.norg file I have

Expected behavior

It should hop to the file.

Steps to reproduce

  1. Create 1 neorg file called neorg.
  2. Create a link to this file from index
  3. Try hopping with <CR>

Potentially conflicting plugins

No response

Other information

It seems that the query capture does not get it (iter_captures is void).

Help

No

Implementation help

/

vhyrro commented 2 years ago

Yo, fixed this now! Please double check :)

max397574 commented 2 years ago

It works for me

danymat commented 2 years ago

Wonderful, thanks !