nvim-neorg / neorg

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

Neorg v8.4.1 bug around opening links #1402

Closed dzh-ma closed 4 months ago

dzh-ma commented 5 months ago

Prerequisites

Neovim Version

NVIM v0.10.0-dev-2976+g208852126

Neorg setup

{
    "nvim-neorg/neorg",
    dependencies = { "luarocks.nvim" },
    lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
    version = "*", -- Pin Neorg to the latest stable release
    config = function ()
        require('neorg').setup {
            load = {
                ['core.concealer'] = {
                    config = {
                        icon_preset = "diamond",
                        folds = false,
                    },
                },
                ['core.autocommands'] = {},
                ['core.integrations.treesitter'] = {},
                ['core.esupports.metagen'] = {
                    config = {
                        type = "auto",
                    },
                },
                ['core.keybinds'] = {
                    config = {
                        default_keybinds = true,
                    },
                },
            },
        }
    end,
},

Actual behavior

  1. attempt to open link using i.e. (sample syntax) ~ [Contains Duplicates]{https://leetcode.com/problems/contains-duplicate/description/md}

  2. following error is reported: [neorg] (22:45:08) ...im/lazy/neorg/lua/neorg/modules/core/keybinds/module.lua:470 Unable to trigger keybind core.esupports.hop.hop-link - the keybind does not exist

Expected behavior

  1. attempt to open link using
  2. opens link inside curly brackets inside browser window

Steps to reproduce

Inside a .norg file, create a regular external URL link (e.g. [Contains Duplicates]{https://leetcode.com/problems/contains-duplicate/description/md}). Press enter key on the line of link (either before or at the character locations).

Potentially conflicting plugins

No response

Other information

Help

No

Implementation help

No response

dzh-ma commented 4 months ago

Solved issue through importing module core.supports.hop