Skip to content

Commit

Permalink
Have ctime abbreviation for current date and time
Browse files Browse the repository at this point in the history
  • Loading branch information
dietrichm committed Aug 24, 2024
1 parent 2a89fbc commit 453e45b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nvim/.config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ vim.api.nvim_create_autocmd('ColorScheme', {

-- Global abbreviations.
vim.cmd.iabbrev('<expr>', 'ruuid', [[luaeval('io.open("/proc/sys/kernel/random/uuid"):read()')]])
vim.cmd.iabbrev('<expr>', 'ctime', [[luaeval('os.date("%FT%T%z")')]])

-- Write without triggering autocommands.
vim.api.nvim_create_user_command('Nw', [[:noautocmd w]], {})
Expand Down

0 comments on commit 453e45b

Please sign in to comment.