mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: snippets: adding rfc5322 date
This commit is contained in:
parent
7bb5d36e1e
commit
e4f891da45
1 changed files with 9 additions and 0 deletions
9
nvim/snippets/all.lua
Normal file
9
nvim/snippets/all.lua
Normal file
|
|
@ -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) })
|
||||
})
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue