mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Add Ultisnips snippets
This commit is contained in:
parent
fcbbe908f6
commit
deb3266920
17
my_snippets/markdown.snippets
Normal file
17
my_snippets/markdown.snippets
Normal file
@ -0,0 +1,17 @@
|
||||
snippet kbd "HTML kbd tag"
|
||||
<kbd>${1:KEY}</kbd>$0
|
||||
endsnippet
|
||||
|
||||
snippet head "Markdown header" b
|
||||
---
|
||||
title: "$1"
|
||||
date: `!v strftime("%Y-%m-%d %H:%M:%S%z")`
|
||||
tags: [$3]
|
||||
categories: [$4]
|
||||
---
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
snippet more "HTML more tag"
|
||||
<!--more-->
|
||||
endsnippet
|
||||
14
my_snippets/python.snippets
Normal file
14
my_snippets/python.snippets
Normal file
@ -0,0 +1,14 @@
|
||||
snippet head "Python source file header" b
|
||||
"""
|
||||
Description: $1
|
||||
Author: Jie-dong Hao
|
||||
Date: `!v strftime("%Y-%m-%d %H:%M:%S%z")`
|
||||
Update: `!v strftime("%Y-%m-%d %H:%M:%S%z")`
|
||||
"""
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
snippet print "Print value of some variable"
|
||||
print("$1".format($2))
|
||||
$0
|
||||
endsnippet
|
||||
3
my_snippets/tex.snippets
Normal file
3
my_snippets/tex.snippets
Normal file
@ -0,0 +1,3 @@
|
||||
snippet frac "Math fractions"
|
||||
\frac{${1:NUM}}{${2:DEN}} $0
|
||||
endsnippet
|
||||
Loading…
x
Reference in New Issue
Block a user