54 lines
1.2 KiB
Lua
54 lines
1.2 KiB
Lua
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
|
|
["<leader>ch"] = {
|
|
action = function()
|
|
return require("obsidian").util.toggle_checkbox()
|
|
end,
|
|
opts = { buffer = true },
|
|
},
|
|
-- Smart action (smart enter)
|
|
["<cr>"] = {
|
|
action = function()
|
|
return require("obsidian").util.smart_action()
|
|
end,
|
|
opts = { buffer = true, expr = true },
|
|
},
|
|
},
|
|
},
|
|
}
|