✨ Feat(obsidian): implement some initial Obsidian Notes features
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user