obsidian in nvim

This commit is contained in:
2024-02-13 04:55:51 -05:00
parent e8875ab86b
commit 03ce8091f0
3 changed files with 33 additions and 9 deletions

View File

@@ -28,4 +28,4 @@ vim.opt.tabstop = 2
vim.opt.undolevels = 1000
vim.opt.backspace = "indent,eol,start"
vim.opt.colorcolumn = "80"
vim.opt.conceallevel = 2

View File

@@ -8,7 +8,8 @@ local plugins = {
context = 20,
expand = {
"function",
}, },
},
},
lazy = false,
},
{
@@ -97,6 +98,25 @@ local plugins = {
event = "BufEnter *.md",
},
{
"epwalsh/obsidian.nvim",
version = "*", -- recommended, use latest release instead of latest commit
lazy = true,
ft = "markdown",
-- ft = {
-- "BufReadPre ~/Notes/**.md",
-- "BufNewFile ~/Notes/**.md",
-- },
dependencies = { "nvim-lua/plenary.nvim" },
opts = {
workspaces = {
{ name = "personal", path = "~/Notes/personal" },
{ name = "work", path = "~/Notes/work" },
},
new_notes_location = "notes_subdir",
daily_notes = { folder = "notes/dailies" },
},
},
-- Disable nvchad plugins
{