From e4f891da453dbfffdf424c60a7c4fc7e662afb62 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 17 Oct 2024 11:56:00 +0200 Subject: [PATCH] nvim: snippets: adding rfc5322 date --- nvim/snippets/all.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 nvim/snippets/all.lua diff --git a/nvim/snippets/all.lua b/nvim/snippets/all.lua new file mode 100644 index 0000000..ce4b3b1 --- /dev/null +++ b/nvim/snippets/all.lua @@ -0,0 +1,9 @@ +local ls = require('luasnip') + +local s = ls.snippet +local f = ls.function_node + +ls.add_snippets("all", { + s("daterfc5322", { f(function() return os.date("%a, %d %b %Y %H:%M:%S %z") end) }) +}) +