mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 11:10:26 +01:00
Automatic abbreviation expansion for some headings
This commit is contained in:
@@ -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" }, {
|
||||
|
||||
Reference in New Issue
Block a user