Skip to content

Commit

Permalink
perf(hop): load plenary only when required, remove startup hiccup
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jun 4, 2023
1 parent 12198ef commit 3caca5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/neorg/modules/core/esupports/hop/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ require("neorg.modules.base")
require("neorg.external.helpers")
local module = neorg.modules.create("core.esupports.hop")
local job = require("plenary.job")
module.setup = function()
return {
Expand Down Expand Up @@ -92,7 +91,7 @@ module.public = {
o.args = { link_location }
end

job:new(o):start()
require("plenary.job"):new(o):start()
end

local function open_split()
Expand Down

0 comments on commit 3caca5a

Please sign in to comment.