From b9441f350f749ff2b4d48acb3c50aef7f17eb20d Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 29 Dec 2024 03:23:46 -0800 Subject: [PATCH] feat: add alexandria as vault for obsidian nvim --- lua/plugins/lz-spec.lua | 4 ++++ lua/scripts/obsidian-sync.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/plugins/lz-spec.lua b/lua/plugins/lz-spec.lua index 0464486..7258011 100644 --- a/lua/plugins/lz-spec.lua +++ b/lua/plugins/lz-spec.lua @@ -249,6 +249,10 @@ return { name = "vault", path = "~/Documents/vaults/vault", }, + { + name = "alexandria", + path = "~/Documents/alexandria/content", + }, }, }) end, diff --git a/lua/scripts/obsidian-sync.lua b/lua/scripts/obsidian-sync.lua index 2ce1431..2ba510a 100644 --- a/lua/scripts/obsidian-sync.lua +++ b/lua/scripts/obsidian-sync.lua @@ -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)