Fix vaults setup and follow_link doc

This commit is contained in:
Vadim Nikolaev
2023-06-28 15:09:36 +05:00
parent 36dad26929
commit 75d615e9aa
2 changed files with 3 additions and 3 deletions

View File

@@ -666,7 +666,7 @@ telekasten.insert_link({opts})~
Default: `nil`
*telekasten.follow_link()*
telekasten.insert_link()~
telekasten.follow_link()~
Take the text between the brackets of a link pointing to a linked note, or
of a tag and open a Telescope file finder with it.

View File

@@ -2812,11 +2812,11 @@ local function _setup(cfg)
if cfg.vaults ~= nil and cfg.default_vault ~= nil then
M.vaults = cfg.vaults
cfg.vaults = nil
Setup(cfg.vaults[cfg.default_vault])
Setup(M.vaults[cfg.default_vault])
elseif cfg.vaults ~= nil and cfg.vaults["default"] ~= nil then
M.vaults = cfg.vaults
cfg.vaults = nil
Setup(cfg.vaults["default"])
Setup(M.vaults["default"])
elseif cfg.home ~= nil then
M.vaults = cfg.vaults or {}
cfg.vaults = nil