return { "epwalsh/obsidian.nvim", version = "*", lazy = true, ft = "markdown", dependencies = { "nvim-lua/plenary.nvim", "hrsh7th/nvim-cmp", "nvim-telescope/telescope.nvim", "nvim-treesitter/nvim-treesitter", }, opts = { workspaces = { { name = "Personal", path = "~/Obsidian/Personal/", }, { name = "School-Obsidian", path = "~/Obsidian/School-Obsidian/", }, }, log_level = vim.log.levels.INFO, daily_notes = { folder = "notes/dailies", date_format = "%Y-%m-%d", alias_format = "%B %-d, %Y", default_tags = { "daily-notes" }, template = nil, }, new_notes_location = "1Projects", completion = { nvim_cmp = true, min_chars = 2, }, mappings = { -- Toggle check-boxes ["ch"] = { action = function() return require("obsidian").util.toggle_checkbox() end, opts = { buffer = true }, }, -- Smart action (smart enter) [""] = { action = function() return require("obsidian").util.smart_action() end, opts = { buffer = true, expr = true }, }, }, }, }