epwalsh/obsidian.nvim is unmaintained and was pinned to a July 2024 commit. Use the community fork, drop the nvim-cmp dependency that LazyVim disables, and point the picker at snacks instead of pulling in fzf-lua. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
29 lines
783 B
Lua
29 lines
783 B
Lua
return {
|
|
"obsidian-nvim/obsidian.nvim",
|
|
version = "*", -- recommended, use latest release instead of latest commit
|
|
lazy = true,
|
|
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 /mnt/c/Users/tyler/notes/*.md",
|
|
"BufNewFile /mnt/c/Users/tyler/notes/*.md",
|
|
"BufReadPre " .. vim.fn.expand("~") .. "/notes/*.md",
|
|
"BufNewFile " .. vim.fn.expand("~") .. "/notes/*.md",
|
|
},
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
},
|
|
opts = {
|
|
workspaces = {
|
|
{
|
|
name = "notes",
|
|
path = "~/notes",
|
|
},
|
|
},
|
|
picker = {
|
|
name = "snacks.pick",
|
|
},
|
|
},
|
|
}
|