From 268d3285b4224815071aecef0c02b8241fe054a3 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Tue, 4 Jun 2024 13:57:28 -0500 Subject: feat(nvim): add obsidian plugin --- dot_config/nvim/lua/plugins/obsidian.lua | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 dot_config/nvim/lua/plugins/obsidian.lua 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, + + }, +} -- cgit v1.2.3