1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 13:30:26 +01:00

Automatic abbreviation expansion for some headings

This commit is contained in:
2026-01-24 21:57:21 +01:00
parent 6ff9e356c3
commit 75ab018b30

View File

@@ -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 <expr> dayh strftime('== %Y%m%d %A ======')")
-- Replace 'timeh' with a formatted date/time header
vim.cmd("iab <expr> timeh strftime('## %Y%m%d %a %H:%M:%S')")
-- vim.cmd("iabbrev <expr> ,d strftime('%Y-%m-%d')")
-- vim.cmd("iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')")
vim.cmd("inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()")
-- Enable autoread and set up checking triggers
vim.o.autoread = true
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter" }, {