Feat(obsidian): implement some initial Obsidian Notes features

This commit is contained in:
2025-03-01 11:05:11 -05:00
parent 969510cee1
commit 98a72eab61
+34
View File
@@ -0,0 +1,34 @@
return {
'epwalsh/obsidian.nvim',
version = '*', -- recommended, use latest release instead of latest commit
lazy = true,
event = {
'BufReadPre ' .. vim.fn.expand('~' .. '/vaults/rootiest/*.md'),
'BufNewFile ' .. vim.fn.expand('~' .. '/vaults/rootiest/*.md'),
},
dependencies = {
-- Required.
'nvim-lua/plenary.nvim',
},
opts = {
workspaces = {
{
name = 'rootiest',
path = '~/vaults/rootiest',
},
},
templates = {
folder = 'templates',
date_format = '%Y-%m-%d-%a',
time_format = '%H:%M',
substitutions = {
yesterday = function()
return os.date('%Y-%m-%d', os.time() - 86400)
end,
},
},
ui = {
enable = false,
},
},
}