diff options
| author | Ibrahim Muftee <ibrahim@muftee.net> | 2024-06-04 13:57:28 -0500 |
|---|---|---|
| committer | Ibrahim Muftee <ibrahim@muftee.net> | 2026-07-01 00:23:31 -0400 |
| commit | 268d3285b4224815071aecef0c02b8241fe054a3 (patch) | |
| tree | 98439fd16a490e5913d209818a52e2d6d8fb9211 /dot_config/nvim/lua/plugins/obsidian.lua | |
| parent | 4b02a9ea19bdf5c0d133dc6f7b284720caacb3cf (diff) | |
feat(nvim): add obsidian plugin
Diffstat (limited to 'dot_config/nvim/lua/plugins/obsidian.lua')
| -rw-r--r-- | dot_config/nvim/lua/plugins/obsidian.lua | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/plugins/obsidian.lua b/dot_config/nvim/lua/plugins/obsidian.lua new file mode 100644 index 0000000..f66e1d1 --- /dev/null +++ b/dot_config/nvim/lua/plugins/obsidian.lua @@ -0,0 +1,41 @@ +return { + "epwalsh/obsidian.nvim", + version = "*", -- recommended, use latest release instead of latest commit + lazy = true, + ft = "markdown", + -- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your 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" + -- "BufReadPre path/to/my-vault/**.md", + -- "BufNewFile path/to/my-vault/**.md", + -- }, + dependencies = { + -- Required. + "nvim-lua/plenary.nvim", + + -- Optional + "hrsh7th/nvim-cmp", + "nvim-telescope/telescope.nvim", + "nvim-treesitter/nvim-treesitter", + }, + opts = { + workspaces = { + -- { + -- name = "personal", + -- path = "~/vaults/personal", + -- }, + { + name = "work", + path = "~/Documents/Vaults/Work", + }, + }, + + -- follow_url_func = function(url) + -- -- Open the URL in the default web browser. + -- vim.fn.jobstart({"Start-Process 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge'", url}) -- Mac OS + -- -- vim.fn.jobstart({"xdg-open", url}) -- linux + -- end, + + }, +} |
