feat: add alexandria as vault for obsidian nvim

This commit is contained in:
Youwen Wu 2024-12-29 03:23:46 -08:00
parent aeadb0a9d3
commit b9441f350f
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 5 additions and 1 deletions

View file

@ -249,6 +249,10 @@ return {
name = "vault",
path = "~/Documents/vaults/vault",
},
{
name = "alexandria",
path = "~/Documents/alexandria/content",
},
},
})
end,

View file

@ -2,7 +2,7 @@ vim.api.nvim_create_user_command("VaultSync", function()
local date = os.date("%Y-%m-%d %H:%M:%S")
local commit_commands = {
"git add -A",
string.format([[git commit -m "neovim-update: %s"]], date),
string.format([[git commit -m "auto-update(nvim): %s"]], date),
}
for _, cmd in ipairs(commit_commands) do
vim.fn.system(cmd)