Skip to content

Commit feae4a8

Browse files
committed
Added global functions, currently with hspace and vspace.
1 parent ca052df commit feae4a8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CodeSenseLibraries/Latex.xml

+11
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,17 @@ $0
8989
<completion string="\FORALL" />
9090
</set>
9191

92+
<set name="lang.latex.global.functions">
93+
<behavior>
94+
<append-dynamic>
95+
<matched-suffix>(\s*:{)|[^:]</matched-suffix>
96+
<transform-into>{${0:arg}}</transform-into>
97+
</append-dynamic>
98+
</behavior>
99+
<completion string="\hspace" />
100+
<completion string="\vspace" />
101+
</set>
102+
92103
<set name="lang.latex.mathmode.functions">
93104
<behavior>
94105
<append-dynamic>

CodeSenseProviders/Latex.xml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<provider>
44
<selector>text.latex, latex.part, latex.chapter, latex.section, latex.subsection, latex.subsubsection, latex.paragraph, latex.subparagraph, latex.subsubparagraph</selector>
55

6+
<completions>lang.latex.global.functions</completions>
7+
68
<completions>lang.latex.simple</completions>
79
<completions>lang.latex.functions</completions>
810
<completions>lang.latex.zone.equation</completions>
@@ -14,6 +16,8 @@
1416
<provider>
1517
<selector>latex.mathmode</selector>
1618

19+
<completions>lang.latex.global.functions</completions>
20+
1721
<completions>lang.latex.mathmode.simple</completions>
1822
<completions>lang.latex.mathmode.greek</completions>
1923
<completions>lang.latex.mathmode.trigonometric</completions>

0 commit comments

Comments
 (0)