Files
dotfiles/nvim/lua/plugins/journal.lua
Bas Grolleman 6aee231663 Changes on Mac
2025-06-10 08:43:51 +02:00

29 lines
1.1 KiB
Lua

return {
"jakobkhansen/journal.nvim",
config = function()
require("journal").setup({
filetype = "md", -- Filetype to use for new journal entries
root = "~/Notes/Journal", -- Root directory for journal entries
date_format = "%Y%m%d", -- Date format for `:Journal <date-modifier>`
autocomplete_date_modifier = "always", -- "always"|"never"|"end". Enable date modifier autocompletion
-- Configuration for journal entries
journal = {
-- Default configuration for `:Journal <date-modifier>`
format = "%Y%m%d",
template = "# %A %B %d %Y\n",
frequency = { day = 1 },
-- Nested configurations for `:Journal <type> <type> ... <date-modifier>`
entries = {
day = {
format = "%Y%m%d", -- Format of the journal entry in the filesystem.
template = "# %A %B %d %Y\n", -- Optional. Template used when creating a new journal entry
frequency = { day = 1 }, -- Optional. The frequency of the journal entry. Used for `:Journal next`, `:Journal -2` etc
},
},
},
})
end,
}