Merge pull request #265 from defntvdm/main

Fix vaults setup and follow_link doc
This commit is contained in:
lambtho
2023-07-03 13:56:02 +00:00
committed by GitHub
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