From 7b15a3a4b4fb4dc6be5d53a22c20d68f8181d68b Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sun, 18 Oct 2026 15:49:48 -0600 Subject: [extregs] initial commit. added a bunch of useful extregs --- lua/extregs/timestamp.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lua/extregs/timestamp.lua (limited to 'lua/extregs/timestamp.lua') diff --git a/lua/extregs/timestamp.lua b/lua/extregs/timestamp.lua new file mode 100644 index 0000000..6405285 --- /dev/null +++ b/lua/extregs/timestamp.lua @@ -0,0 +1,6 @@ +local util = require('extregs.util') +local M = {} +function M.get_provider(cfg) + return util.readonly(function() return os.date(cfg.format) end) +end +return M -- cgit