aboutsummaryrefslogtreecommitdiff
path: root/lua/extregs/timestamp.lua
diff options
context:
space:
mode:
authorJosh Rahm <rahm@josher.dev>2026-10-18 15:49:48 -0600
committerJosh Rahm <rahm@josher.dev>2026-10-18 15:49:48 -0600
commit7b15a3a4b4fb4dc6be5d53a22c20d68f8181d68b (patch)
treed3e08937bc78441a2f3d64ad6935337cf6d9b0be /lua/extregs/timestamp.lua
downloadextregs.nvim-7b15a3a4b4fb4dc6be5d53a22c20d68f8181d68b.tar.gz
extregs.nvim-7b15a3a4b4fb4dc6be5d53a22c20d68f8181d68b.tar.bz2
extregs.nvim-7b15a3a4b4fb4dc6be5d53a22c20d68f8181d68b.zip
[extregs] initial commit.HEADmain
added a bunch of useful extregs
Diffstat (limited to 'lua/extregs/timestamp.lua')
-rw-r--r--lua/extregs/timestamp.lua6
1 files changed, 6 insertions, 0 deletions
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