From fcdc5bf42c57358b69e6a0973597c2f99ed24656 Mon Sep 17 00:00:00 2001 From: ucpr Date: Sun, 30 Jul 2023 15:34:35 +0900 Subject: [PATCH] feat: add time snippets --- nvim/snippets/global.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/nvim/snippets/global.json b/nvim/snippets/global.json index 2d79955..0ee55d2 100644 --- a/nvim/snippets/global.json +++ b/nvim/snippets/global.json @@ -4,5 +4,23 @@ "body": [ "${VIM:system('python3 -c \"import uuid, sys;sys.stdout.write(str(uuid.uuid4()))\"')}" ] + }, + "unixtime": { + "prefix": "unixtime", + "body": [ + "${VIM:strftime('%s')}" + ] + }, + "datetime": { + "prefix": "datetime", + "body": [ + "${VIM:strftime('%Y-%m-%d %H:%M:%S')}" + ] + }, + "date": { + "prefix": "date", + "body": [ + "${VIM:strftime('%Y-%m-%d')}" + ] } } -- knotmirror 0.0.1