Update obsidian plugins to auto handle git

This commit is contained in:
ViViDboarder 2023-11-10 11:24:11 -08:00
parent cf2c776af6
commit 78f926dd79

View File

@ -501,14 +501,32 @@ use({
})
-- Obsidian notes
-- This loads an Obsidian plugin for better vault interraction as well as auto pulls
-- and commits to my vault git repo. On iOS devices, I use Working Copy to sync the
-- repo and use Shortcuts to automate pulling on open and auto committing and pushing
-- after closing Obsidian.
use({
"epwalsh/obsidian.nvim",
requires = {
"nvim-lua/plenary.nvim",
{
-- Fork of https://github.com/declancm/git-scripts.nvim is used here
-- because it inclueds a few small fixes.
"https://github.com/vividboarder/git-scripts.nvim",
branch = "dev",
config = function()
local gs = require("git-scripts")
gs.setup({
default_keymaps = false,
commit_on_save = true,
})
gs.async_pull()
end,
after = "obsidian.nvim",
},
},
tag = "v1.14.2",
tag = "v1.*",
config = function()
-- vim.cmd(":Git pull")
require("obsidian").setup({
workspaces = {
name = "personal",