1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 17:50:05 +08:00
SpaceVim/bundle/vim-zettelkasten/lua/zettelkasten/config.lua
2022-10-18 22:55:34 +08:00

32 lines
825 B
Lua
Vendored

--=============================================================================
-- config.lua --- the config module for zettelkasten
-- Copyright (c) 2016-2022 Wang Shidong & Contributors
-- 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
local s_config = {
notes_path = "",
preview_command = "pedit",
browseformat = "%f - %h [%r Refs] [%b B-Refs] %t",
}
M.get = function()
return s_config
end
M._set = function(new_config)
s_config = vim.tbl_extend("force", s_config, new_config)
end
return M