From 98a72eab615cf7dfd9a595a7e0499bc0d9598b2e Mon Sep 17 00:00:00 2001 From: rootiest Date: Sat, 1 Mar 2025 11:05:11 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Feat(obsidian):=20implement=20some?= =?UTF-8?q?=20initial=20Obsidian=20Notes=20features?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/plugins/obsidian.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lua/plugins/obsidian.lua diff --git a/lua/plugins/obsidian.lua b/lua/plugins/obsidian.lua new file mode 100644 index 0000000..f3ba9de --- /dev/null +++ b/lua/plugins/obsidian.lua @@ -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, + }, + }, +}