2022-10-18 22:55:34 +08:00
|
|
|
--=============================================================================
|
|
|
|
-- config.lua --- the config module for zettelkasten
|
2023-03-26 13:44:47 +08:00
|
|
|
-- Copyright (c) 2016-2023 Wang Shidong & Contributors
|
2022-10-18 22:55:34 +08:00
|
|
|
-- Author: Wang Shidong < wsdjeg@outlook.com >
|
|
|
|
-- URL: https://spacevim.org
|
|
|
|
-- License: GPLv3
|
|
|
|
--=============================================================================
|
|
|
|
local M = {}
|
|
|
|
|
|
|
|
|
|
|
|
if vim.g.zettelkasten_directory and vim.g.zettelkasten_directory ~= '' then
|
|
|
|
M.zettel_dir = vim.g.zettelkasten_directory
|
|
|
|
else
|
|
|
|
M.zettel_dir = '~/.zettelkasten/'
|
|
|
|
end
|
|
|
|
|
2022-10-25 18:35:51 +08:00
|
|
|
if vim.g.zettelkasten_template_directory and vim.g.zettelkasten_template_directory ~= '' then
|
|
|
|
M.templete_dir = vim.g.zettelkasten_template_directory
|
|
|
|
else
|
|
|
|
M.templete_dir = '~/.zettelkasten_template'
|
2022-10-18 22:55:34 +08:00
|
|
|
end
|
|
|
|
|
2022-10-25 18:35:51 +08:00
|
|
|
M.browseformat = "%f - %h [%r Refs] [%b B-Refs] %t"
|
|
|
|
M.preview_command = "pedit"
|
|
|
|
|
|
|
|
M.get = function()
|
|
|
|
return nil
|
2022-10-18 22:55:34 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|