diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua index 2c19de9..007936a 100644 --- a/.config/nvim/lua/config/options.lua +++ b/.config/nvim/lua/config/options.lua @@ -19,6 +19,15 @@ vim.opt.wrap = true -- Enable line wrap vim.opt.spelllang = { "en", "nl" } +-- Replace 'dayh' with a formatted day header +vim.cmd("iab dayh strftime('== %Y%m%d %A ======')") +-- Replace 'timeh' with a formatted date/time header +vim.cmd("iab timeh strftime('## %Y%m%d %a %H:%M:%S')") + +-- vim.cmd("iabbrev ,d strftime('%Y-%m-%d')") +-- vim.cmd("iabbrev ,t strftime('%Y-%m-%dT%TZ')") +vim.cmd("inoreabbrev ,u system('uuidgen')->trim()->tolower()") + -- Enable autoread and set up checking triggers vim.o.autoread = true vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter" }, {