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