Compare commits
2 Commits
725cde218b
...
77fdfdf401
Author | SHA1 | Date | |
---|---|---|---|
77fdfdf401 | |||
a345a6ef4e |
25
files/dotfiles/ultisnips/python.snippets
Normal file
25
files/dotfiles/ultisnips/python.snippets
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# A valid snippet should starts with:
|
||||||
|
#
|
||||||
|
# snippet trigger_word [ "description" [ options ] ]
|
||||||
|
#
|
||||||
|
# and end with:
|
||||||
|
#
|
||||||
|
# endsnippet
|
||||||
|
#
|
||||||
|
# Snippet options:
|
||||||
|
#
|
||||||
|
# b - Beginning of line.
|
||||||
|
# i - In-word expansion.
|
||||||
|
# w - Word boundary.
|
||||||
|
# r - Regular expression
|
||||||
|
# e - Custom context snippet
|
||||||
|
# A - Snippet will be triggered automatically, when condition matches.
|
||||||
|
#
|
||||||
|
# Basic example:
|
||||||
|
#
|
||||||
|
# snippet emitter "emitter properties" b
|
||||||
|
# private readonly ${1} = new Emitter<$2>()
|
||||||
|
# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event
|
||||||
|
# endsnippet
|
||||||
|
#
|
||||||
|
# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
|
45
files/dotfiles/ultisnips/rst.snippets
Normal file
45
files/dotfiles/ultisnips/rst.snippets
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# A valid snippet should starts with:
|
||||||
|
#
|
||||||
|
# snippet trigger_word [ "description" [ options ] ]
|
||||||
|
#
|
||||||
|
# and end with:
|
||||||
|
#
|
||||||
|
# endsnippet
|
||||||
|
#
|
||||||
|
# Snippet options:
|
||||||
|
#
|
||||||
|
# b - Beginning of line.
|
||||||
|
# i - In-word expansion.
|
||||||
|
# w - Word boundary.
|
||||||
|
# r - Regular expression
|
||||||
|
# e - Custom context snippet
|
||||||
|
# A - Snippet will be triggered automatically, when condition matches.
|
||||||
|
#
|
||||||
|
# Basic example:
|
||||||
|
#
|
||||||
|
# snippet emitter "emitter properties" b
|
||||||
|
# private readonly ${1} = new Emitter<$2>()
|
||||||
|
# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event
|
||||||
|
# endsnippet
|
||||||
|
#
|
||||||
|
# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
|
||||||
|
snippet index "Structure for an index file" b
|
||||||
|
${1:title}
|
||||||
|
${1/./#/g}
|
||||||
|
|
||||||
|
:date: ${2:`date +%Y-%m-%d`}
|
||||||
|
:modified: ${2}
|
||||||
|
:authors: Bertrand Benjamin
|
||||||
|
:category: ${3}
|
||||||
|
:summary: ${1}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet link "link" i
|
||||||
|
\`${1:link title} <${2:link target}>\`_
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet img "Image" b
|
||||||
|
.. image:: ${1:filename}
|
||||||
|
:height: 200px
|
||||||
|
:alt: ${2:Description}
|
||||||
|
endsnippet
|
52
files/dotfiles/ultisnips/tex.snippets
Normal file
52
files/dotfiles/ultisnips/tex.snippets
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
# A valid snippet should starts with:
|
||||||
|
#
|
||||||
|
# snippet trigger_word [ "description" [ options ] ]
|
||||||
|
#
|
||||||
|
# and end with:
|
||||||
|
#
|
||||||
|
# endsnippet
|
||||||
|
#
|
||||||
|
# Snippet options:
|
||||||
|
#
|
||||||
|
# b - Beginning of line.
|
||||||
|
# i - In-word expansion.
|
||||||
|
# w - Word boundary.
|
||||||
|
# r - Regular expression
|
||||||
|
# e - Custom context snippet
|
||||||
|
# A - Snippet will be triggered automatically, when condition matches.
|
||||||
|
#
|
||||||
|
# Basic example:
|
||||||
|
#
|
||||||
|
# snippet emitter "emitter properties" b
|
||||||
|
# private readonly ${1} = new Emitter<$2>()
|
||||||
|
# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event
|
||||||
|
# endsnippet
|
||||||
|
#
|
||||||
|
# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
|
||||||
|
|
||||||
|
snippet signe "tableau de signes avec tikz"
|
||||||
|
\begin{tikzpicture}[baseline=(a.north)]
|
||||||
|
\tkzTabInit[lgt=2,espcl=2]{$ ${1:variable} $/1,$ ${2:function} $/2}{${3:start}, ${4:zeros}, ${5:end} }
|
||||||
|
\tkzTabLine{, ${6:signe and zeros} , }
|
||||||
|
\end{tikzpicture}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet varia "tableau de variations avec tikz"
|
||||||
|
\begin{tikzpicture}[baseline=(a.north)]
|
||||||
|
\tkzTabInit[lgt=3,espcl=3]{$ ${1:variable} $/1, $ ${2:fonction} $/2}{${3: valeurs notables} }
|
||||||
|
\tkzTabVar{ ${4:signe/element ou signe*2 /element G/ element D}}
|
||||||
|
\end{tikzpicture}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet graph "Graphique avec tikz" b
|
||||||
|
\begin{tikzpicture}[baseline=(a.north), xscale=1, yscale=1]
|
||||||
|
\tkzInit[xmin=-5,xmax=5,xstep=1,
|
||||||
|
ymin=-5,ymax=5,ystep=1]
|
||||||
|
\tkzGrid
|
||||||
|
\tkzAxeXY
|
||||||
|
\tkzFct[domain=-5:5,color=red,very thick]%
|
||||||
|
{ ${1:fonction} };
|
||||||
|
\end{tikzpicture}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
|
@ -168,3 +168,14 @@
|
|||||||
group: "{{ item.group }}"
|
group: "{{ item.group }}"
|
||||||
with_items: "{{ dotusers }}"
|
with_items: "{{ dotusers }}"
|
||||||
when: not server
|
when: not server
|
||||||
|
|
||||||
|
# coc snippets
|
||||||
|
- name: dotfiles -- Copying snippets
|
||||||
|
file:
|
||||||
|
src: files/dotfiles/ultisnips
|
||||||
|
dest: /home/{{ item.username }}/.config/coc/ultisnips
|
||||||
|
state: directory
|
||||||
|
owner: "{{ item.username }}"
|
||||||
|
group: "{{ item.group }}"
|
||||||
|
with_items: "{{ dotusers }}"
|
||||||
|
when: prompt == 'fish'
|
||||||
|
Loading…
Reference in New Issue
Block a user