diff --git a/UltiSnips/ada.snippets b/UltiSnips/ada.snippets index ce93b9c..dc2698b 100644 --- a/UltiSnips/ada.snippets +++ b/UltiSnips/ada.snippets @@ -100,7 +100,16 @@ else: endsnippet snippet type "declare a new type" bA -type ${1:TypeName} is ${2:array($3..$4)} of ${5:Integer};$0 +type ${1:TypeName} is ${2:array($3..$4) of }`!p +if t[2] == "record": + snip.rv = "\n\t\t" +else: + snip.rv = ""`$5`!p +if t[2] == "record": + snip.rv = "\n\tend record" +else: + snip.rv = "" +`;$0 endsnippet snippet docstring "Document String with most important infor" b @@ -109,3 +118,13 @@ snippet docstring "Document String with most important infor" b -- Author(s): ${1:Yannick Reiß} -- Content: ${2: Function `!p snip.rv = fn.split('.')[0]`} endsnippet + +snippet project "Project" b +project ${1:Default} is + for Source_Dirs use ("${2:src}"); + for Object_Dir use "${3:obj}"; + for Exec_Dir use "${4:bin}"; + for Main use ("${5:main.adb}"); + for Languages use ("Ada"); +end $1; +endsnippet diff --git a/UltiSnips/markdown.snippets b/UltiSnips/markdown.snippets index 8bb10be..9fd243f 100644 --- a/UltiSnips/markdown.snippets +++ b/UltiSnips/markdown.snippets @@ -49,6 +49,13 @@ $1 $0 endsnippet +snippet cjson "json code" +\`\`\`json +$1 +\`\`\` +$0 +endsnippet + snippet ,m "Math equation" A \$$1\$ $0 endsnippet diff --git a/lua/plugins.lua b/lua/plugins.lua index 286d830..0042e24 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -69,4 +69,5 @@ return { build = "./install.sh", dependencies = "hrsh7th/nvim-cmp", }, + "jaredgorski/spacecamp", } diff --git a/spell/de.utf-8.add b/spell/de.utf-8.add index ed7b38c..f16cc2f 100644 --- a/spell/de.utf-8.add +++ b/spell/de.utf-8.add @@ -352,3 +352,29 @@ Tablet Abschwington BerndDasBot Frameworks +Tuples +structs +make +IoT +json +Request +Dictionary +Everything +Disclaimer +linuxspezifischen +linuxspezifischen +cron +false +true +boolsche +bash +zsh +sockets +requests +otwendige +ptionale +utomatischer +anueller +nickr +eu +email diff --git a/spell/de.utf-8.add.spl b/spell/de.utf-8.add.spl index 25a252a..e1e9428 100644 Binary files a/spell/de.utf-8.add.spl and b/spell/de.utf-8.add.spl differ