mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
re-fix #69 proper handling of img subdir in dir check
This commit is contained in:
@@ -188,11 +188,12 @@ local function global_dir_check()
|
|||||||
ret = ret and check_dir_and_ask(M.Cfg.dailies, "dailies")
|
ret = ret and check_dir_and_ask(M.Cfg.dailies, "dailies")
|
||||||
ret = ret and check_dir_and_ask(M.Cfg.weeklies, "weeklies")
|
ret = ret and check_dir_and_ask(M.Cfg.weeklies, "weeklies")
|
||||||
ret = ret and check_dir_and_ask(M.Cfg.templates, "templates")
|
ret = ret and check_dir_and_ask(M.Cfg.templates, "templates")
|
||||||
ret = ret
|
|
||||||
and check_dir_and_ask(
|
local img_dir = M.Cfg.home
|
||||||
M.Cfg.home .. "/" .. M.Cfg.image_subdir,
|
if M.Cfg.image_subdir then
|
||||||
"image_subdir"
|
img_dir = img_dir .. "/" .. M.Cfg.image_subdir
|
||||||
)
|
end
|
||||||
|
ret = ret and check_dir_and_ask(img_dir, "image_subdir")
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user