nvim-neorg / neorg

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

Inconsistencies in hop-links #248

Closed danymat closed 2 years ago

danymat commented 2 years ago

Prerequisites

Neovim Version

NVIM v0.7.0-dev+704-gac2d140a3

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 = {
                    ...
                },
            },
        },

        ["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"] = {},
    },
    -- logger = {
    --  level = "info", -- Show trace, info, warning, error and fatal messages
    -- },
})

Actual behavior

This works: 
--> {# Salut}
--> {# Neorg Readme}

This works:
--> {# Salut}

This does not work:

-> {# Salut} (this link gets treated)
--> {# Neorg Readme} (this link don't get treated)

Expected behavior

-> {# Salut}
--> {# Neorg Readme} (jumping on this link should work)

Steps to reproduce

Create a file like this :

* Salut
** Neorg Readme

-> {# Salut}
--> {# Neorg Readme}

Potentially conflicting plugins

No response

Other information

No response

Help

Yes, but I don't know how to start. I would need guidance (check question below)

Implementation help

/

vhyrro commented 2 years ago

I can reproduce this - I'll look into a fix ASAP

vhyrro commented 2 years ago

I think I managed to figure this one out. Man was this a doozy to track down properly lol

danymat commented 2 years ago

Fixed, thanks ! 🥳