neovim - obsidian
This commit is contained in:
36
home/programs/neovim/lua/plugins/obsidian.lua
Normal file
36
home/programs/neovim/lua/plugins/obsidian.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
return {
|
||||
{
|
||||
"epwalsh/obsidian.nvim",
|
||||
lazy = true,
|
||||
event = {
|
||||
"BufReadPre " .. vim.fn.expand("~") .. "/Notes/**.md",
|
||||
"BufNewFile " .. vim.fn.expand("~") .. "/Notes/**.md",
|
||||
},
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"hrsh7th/nvim-cmp",
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"nvim-treesitter",
|
||||
},
|
||||
config = function()
|
||||
vim.opt.conceallevel = 2
|
||||
require("obsidian").setup({
|
||||
workspaces = {
|
||||
{
|
||||
name = "personal",
|
||||
path = "~/Notes/personal",
|
||||
},
|
||||
{
|
||||
name = "work",
|
||||
path = "~/Notes/work",
|
||||
},
|
||||
{
|
||||
name = "studies",
|
||||
path = "~/Notes/studies",
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user