mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
Merge pull request #265 from defntvdm/main
Fix vaults setup and follow_link doc
This commit is contained in:
@@ -666,7 +666,7 @@ telekasten.insert_link({opts})~
|
|||||||
Default: `nil`
|
Default: `nil`
|
||||||
|
|
||||||
*telekasten.follow_link()*
|
*telekasten.follow_link()*
|
||||||
telekasten.insert_link()~
|
telekasten.follow_link()~
|
||||||
Take the text between the brackets of a link pointing to a linked note, or
|
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.
|
of a tag and open a Telescope file finder with it.
|
||||||
|
|
||||||
|
|||||||
@@ -2812,11 +2812,11 @@ local function _setup(cfg)
|
|||||||
if cfg.vaults ~= nil and cfg.default_vault ~= nil then
|
if cfg.vaults ~= nil and cfg.default_vault ~= nil then
|
||||||
M.vaults = cfg.vaults
|
M.vaults = cfg.vaults
|
||||||
cfg.vaults = nil
|
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
|
elseif cfg.vaults ~= nil and cfg.vaults["default"] ~= nil then
|
||||||
M.vaults = cfg.vaults
|
M.vaults = cfg.vaults
|
||||||
cfg.vaults = nil
|
cfg.vaults = nil
|
||||||
Setup(cfg.vaults["default"])
|
Setup(M.vaults["default"])
|
||||||
elseif cfg.home ~= nil then
|
elseif cfg.home ~= nil then
|
||||||
M.vaults = cfg.vaults or {}
|
M.vaults = cfg.vaults or {}
|
||||||
cfg.vaults = nil
|
cfg.vaults = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user