41 lines
1.2 KiB
Lua
41 lines
1.2 KiB
Lua
return {
|
|
"epwalsh/obsidian.nvim",
|
|
version = "*", -- recommended, use latest release instead of latest commit
|
|
lazy = true,
|
|
-- ft = "markdown",
|
|
-- swap event for ft line to load on all markdown files, not just those in the vault
|
|
event = {
|
|
-- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
|
|
-- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/*.md"
|
|
-- refer to `:h file-pattern` for more examples
|
|
"BufReadPre /home/venus/Documents/Notes/*.md",
|
|
"BufNewFile /home/venus/Documents/Notes/*.md",
|
|
},
|
|
dependencies = {
|
|
-- Required.
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
},
|
|
opts = {
|
|
workspaces = {
|
|
{
|
|
name = "Primay",
|
|
path = "~/Notes",
|
|
},
|
|
{
|
|
name = "Old",
|
|
path = "~/Documents/Personal-Wiki/",
|
|
},
|
|
},
|
|
daily_notes = {
|
|
-- Optional, if you want to change the date format for the ID of daily notes.
|
|
date_format = "%Y-%m-%d",
|
|
-- Optional, default tags to add to each new daily note created.
|
|
default_tags = { "daily" },
|
|
-- Optional, if you want to automatically insert a template from your template directory like 'daily.md'
|
|
template = "templates/Daily Note.md",
|
|
},
|
|
new_notes_location = "current_dir",
|
|
},
|
|
}
|