obsidian.lua 836 B

12345678910111213141516171819202122232425262728
  1. return {
  2. "epwalsh/obsidian.nvim",
  3. version = "*", -- recommended, use latest release instead of latest commit
  4. lazy = true,
  5. ft = "markdown",
  6. -- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
  7. -- event = {
  8. -- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
  9. -- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/*.md"
  10. -- -- refer to `:h file-pattern` for more examples
  11. -- "BufReadPre path/to/my-vault/*.md",
  12. -- "BufNewFile path/to/my-vault/*.md",
  13. -- },
  14. dependencies = {
  15. -- Required.
  16. "nvim-lua/plenary.nvim",
  17. -- see below for full list of optional dependencies 👇
  18. },
  19. opts = {
  20. workspaces = {
  21. {
  22. name = "Vault",
  23. path = "~/Documents/Vault/",
  24. },
  25. },
  26. },
  27. }