You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---@brief The Neovim plugin for the *down* _markdown_ developer-focused
10
-
---@briefnote-taking and knowledge management environment, offering the comfort familiarity, and compatibility of a traditional markdown note-taking environment with the power of org-mode.
10
+
---@brief note-taking and knowledge management environment, offering the comfort familiarity, and compatibility of a traditional markdown note-taking environment with the power of org-mode.
log.error("Mod.load_mod: could not load mod " ..n)
213
213
returnnil
214
214
elseifmodl==truethen
215
-
log.error("did not return valid mod:" ..n)
215
+
log.error("Mod.load_mod: could not load mod " ..n)
216
216
returnnil
217
217
end
218
218
returnmodl
219
219
end
220
220
221
221
--- @parammodnstring A path to a mod on disk. A path in down is '.', not '/'.
222
222
--- @paramcfgtable? A config that reflects the structure of `down.config.user.setup["mod.id"].config`.
223
-
--- @returndown.Mod|nil # Whether the mod was successfully loaded.
223
+
--- @returndown.Mod.Mod|nil # Whether the mod was successfully loaded.
224
224
functionMod.load_mod(modn, cfg)
225
225
ifMod.mods[modn] then
226
226
ifcfg~=nilthen
@@ -235,30 +235,7 @@ function Mod.load_mod(modn, cfg)
235
235
ifcfgandnotvim.tbl_isempty(cfg) then
236
236
modl.config=util.extend(modl.config, cfg)
237
237
end
238
-
returnMod.load_mod_from_table(modl)
239
-
end
240
-
241
-
--- Has the same principle of operation as load_mod_from_table(), except it then sets up the parent mod's "dep" table, allowing the parent to access the child as if it were a dependency.
242
-
--- @parammddown.Mod A valid table as returned by mod.new()
243
-
--- @paramparent_modstring|down.Mod If a string, then the parent is searched for in the loaded mod. If a table, then the mod is treated as a valid mod as returned by mod.new()
0 commit comments