aboutsummaryrefslogtreecommitdiff
path: root/.config/coc/ultisnips
diff options
context:
space:
mode:
Diffstat (limited to '.config/coc/ultisnips')
-rw-r--r--.config/coc/ultisnips/css.snippets5
-rw-r--r--.config/coc/ultisnips/html.snippets16
-rw-r--r--.config/coc/ultisnips/tex.snippets34
3 files changed, 55 insertions, 0 deletions
diff --git a/.config/coc/ultisnips/css.snippets b/.config/coc/ultisnips/css.snippets
new file mode 100644
index 0000000..fc67c2e
--- /dev/null
+++ b/.config/coc/ultisnips/css.snippets
@@ -0,0 +1,5 @@
+snippet resetFontWeight "reset font-weight for mobile browsers"
+h1, h2, h3, h4, h5, h6 {
+ font-weight: normal !important;
+}
+endsnippet
diff --git a/.config/coc/ultisnips/html.snippets b/.config/coc/ultisnips/html.snippets
new file mode 100644
index 0000000..1730a7a
--- /dev/null
+++ b/.config/coc/ultisnips/html.snippets
@@ -0,0 +1,16 @@
+snippet newhtml "HTML Starting Point"
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset='utf-8'>
+ <meta http-equiv='X-UA-Compatible' content='IE=edge'>
+ <title>${1:Page Title}</title>
+ <meta name='viewport' content='width=device-width, initial-scale=1'>
+ <link rel='stylesheet' type='text/css' media='screen' href='${2:style.css}'>
+ <script src='${3:script.js}'></script>
+</head>
+<body>
+ ${0}
+</body>
+</html>
+endsnippet
diff --git a/.config/coc/ultisnips/tex.snippets b/.config/coc/ultisnips/tex.snippets
new file mode 100644
index 0000000..056f562
--- /dev/null
+++ b/.config/coc/ultisnips/tex.snippets
@@ -0,0 +1,34 @@
+snippet newdocument "Starting point for a new LaTeX document"
+\\documentclass[12pt, a4paper, hidelinks]{article}
+\\setlength{\\marginparwidth}{2.54cm}
+
+% Packages
+\\usepackage{fullpage}
+
+% Skip
+\\bigskipamount=.7cm
+\\medskipamount=.4cm
+\\parindent=.3cm
+
+% Document
+\\begin{document}
+ ${0}
+\\end{document}
+endsnippet
+
+snippet nonumberedchapters "Removes chapter numbers"
+% Unnumber chapter headings
+\\makeatletter
+\\def\\@seccntformat#1{
+ \\expandafter\\ifx\\csname c@#1\\endcsname\\c@section\\else
+ \\csname the#1\\endcsname\\quad
+ \\fi}
+\\makeatother
+endsnippet
+
+snippet beginend "begin/end snippet"
+\\begin\{${1}\}
+${0}
+\\end\{${1}\}
+endsnippet
+