Adds nvim config as home manager module
This commit is contained in:
parent
5a9ad9bbd1
commit
98f4a6679e
34 changed files with 1260 additions and 0 deletions
28
home/modules/nvim/config/lua/plugins/obsidian.lua
Normal file
28
home/modules/nvim/config/lua/plugins/obsidian.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
return {
|
||||
"epwalsh/obsidian.nvim",
|
||||
version = "*", -- recommended, use latest release instead of latest commit
|
||||
lazy = true,
|
||||
ft = "markdown",
|
||||
event = {
|
||||
"BufReadPre /home/dennis/notes/**.md",
|
||||
"BufNewFile /home/dennis/notes/**.md",
|
||||
},
|
||||
opts = {
|
||||
workspaces = {
|
||||
{
|
||||
name = "notes",
|
||||
path = "~/notes",
|
||||
},
|
||||
},
|
||||
daily_notes = {
|
||||
-- Optional, if you keep daily notes in a separate directory.
|
||||
folder = "~/notes/001_dailies",
|
||||
-- Optional, if you want to change the date format for the ID of daily notes.
|
||||
date_format = "%Y-%m-%d",
|
||||
-- Optional, if you want to change the date format of the default alias of daily notes.
|
||||
alias_format = "%B %-d, %Y",
|
||||
-- Optional, if you want to automatically insert a template from your template directory like 'daily.md'
|
||||
template = nil,
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue