+
+
+ ${1}
+
+
+
+ ${2}
+
+
+snippet script
+
diff --git a/home/programs/neovim/configuration/snippets/javascript.snippets b/home/programs/neovim/configuration/snippets/javascript.snippets
new file mode 100644
index 0000000..61f5375
--- /dev/null
+++ b/home/programs/neovim/configuration/snippets/javascript.snippets
@@ -0,0 +1,43 @@
+snippet file JavaScript FileTemplate
+ /**
+ * @param {object} window The window object of the browser.
+ * @param {object} document The document object of the browser.
+ * @param {function} $ jQuery
+ * @param {undefined} undefined Just undefined
+ *
+ * @author `system('git config --get user.name')` <`system('git config --get user.email')`>
+ */
+ ;(function(window, document, $, undefined) {
+ ${1}
+ })(window, document, jQuery);
+
+snippet log
+ console.log(${1});${0}
+snippet license
+ /*
+ * ${1}
+ * Copyright (C) `system('date +%Y')` `system('git config --get user.name')` <`system('git config --get user.email')`>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+snippet cdata
+
+snippet if
+ if (${1}) {
+ ${0}
+ }
diff --git a/home/programs/neovim/configuration/snippets/php.snippets b/home/programs/neovim/configuration/snippets/php.snippets
new file mode 100644
index 0000000..d33d9ba
--- /dev/null
+++ b/home/programs/neovim/configuration/snippets/php.snippets
@@ -0,0 +1,309 @@
+snippet t3de Insert TYPO3 Extbase var_dump
+ \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump(${1:debug_backtrace()}, '$1', 8, ${2:true});${3:die;}${4}
+
+snippet additionalconf
+ if (getenv('TYPO3_ADDITIONAL_CONFIGURATION')) {
+ require_once getenv('TYPO3_ADDITIONAL_CONFIGURATION');
+ }
+
+snippet xdebug
+ \xdebug_break();
+
+snippet t3sqlde
+ \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\ConnectionPool::class)
+ ->getConnectionByName('Default')
+ ->getConfiguration()
+ ->setSQLLogger(new class implements \Doctrine\DBAL\Logging\SQLLogger {
+ public function startQuery($sql, ?array $params = null, ?array $types = null) {
+ \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($sql, 'sql', 8, false);
+ \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($params, 'params', 8, false);
+ \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($types, 'types', 8, false);
+ }
+ public function stopQuery() { }
+ });
+
+snippet declare_strict
+ declare(strict_types=1);
+
+snippet t3log
+ \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Log\LogManager::class)
+ ->getLogger('das')
+ ->debug('DAS', [${1}]);
+
+snippet t3mem
+ \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Core\Log\LogManager')
+ ->getLogger('das')
+ ->debug('memory stats ${1}', [
+ 'memory_get_usage' => \TYPO3\CMS\Core\Utility\GeneralUtility::formatSize(memory_get_usage()),
+ 'memory_get_peak_usage' => \TYPO3\CMS\Core\Utility\GeneralUtility::formatSize(memory_get_peak_usage()),
+ ]);
+
+snippet throw
+ throw new \Exception('${1:message}', `system('date +%s')`);
+
+snippet t3devlog
+ \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('${1:message}', '${2:ds}', ${3:0}, ${4:[]});
+
+snippet construct
+ public function __construct(
+ ${0}
+ ) {
+ }
+
+snippet sfile
+ create(`expand('%:t:r:s?Seeder??')`::class, 50)->each(function ($`expand('%:t:r:s?Seeder??:s?.?\l&?')`) use ($factory) {
+ // $`expand('%:t:r:s?Seeder??:s?.?\l&?')`->posts()->save($factory->make(\App\Post::class));
+ });
+ }
+ }
+
+snippet t3file
+
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+ namespace DanielSiepmann`expand('%:h:s?.*ext/??:s?Classes/??:s?local_packages/??:s?localPackages/??:s?packages/??:s?.*_?\u&?:gs?_.?\U&?:gs?_??:gs?/?\\\?:s??\\\?')`;
+
+ class ${1:`expand('%:t:s?.php??')`}
+ {
+ ${2}
+ }
+
+snippet localconf
+
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+ namespace DanielSiepmann`expand('%:h:s?Classes/??:s?.*_?\u&?:gs?_.?\U&?:gs?_??:gs?/?\\\?:s??\\\?')`;
+
+ class ${1:`expand('%:t:s?.php??')`} extends ${2} implements ${3}
+ {
+ ${4}
+ }
+
+snippet stestfile
+ subject = $this->app->make(::class);
+ }
+ ${4}
+ }
+
+snippet testfile
+
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+ namespace DanielSiepmann`expand('%:h:s?.*ext/??:s?local_packages/??:s?Classes/??:s?.*_?\u&?:gs?_.?\U&?:gs?_??:gs?/?\\\?:s??\\\?')`;
+
+ use DanielSiepmann`expand('%:r:s?.*ext/??:s?local_packages/??:s?Classes/??:s?Tests/Unit/??:s?Tests/Functional/??:s?Test??:s?.*_?\u&?:gs?_.?\U&?:gs?_??:gs?/?\\\?:s??\\\?')`;
+ use PHPUnit\Framework\TestCase;
+
+ /**
+ * @covers \DanielSiepmann`expand('%:r:s?.*ext/??:s?local_packages/??:s?Classes/??:s?Tests/Unit/??:s?Tests/Functional/??:s?Test??:s?.*_?\u&?:gs?_.?\U&?:gs?_??:gs?/?\\\?:s??\\\?')`
+ */
+ class ${1:`expand('%:t:s?.php??')`} extends TestCase
+ {
+ /**
+ * @test
+ */
+ public function canBeCreated(): void
+ {
+ $subject = new `expand('%:r:s?Test$??:s?.*/??')`();
+
+ self::assertInstanceOf(
+ `expand('%:r:s?Test$??:s?.*/??')`::class,
+ $subject
+ );
+ }
+ }
+
+snippet Exception
+ throw new \Exception('${1}', `strftime('%s')`);
+
+snippet if
+ if (${1:/* condition */}) {
+ ${0}
+ }
+
+snippet foreach
+ foreach ($${1:variable} as $${2:value}) {
+ ${0}
+ }
+
+snippet foreachk
+ foreach ($${1:variable} as $${2:key} => $${3:value}) {
+ ${0}
+ }
+
+snippet fun
+ ${1:private} function ${2:name}(${3})${4}
+ {
+ ${0}
+ }
+
+snippet closure
+ (function () {
+ ${0}
+ })();
+
+snippet test
+ /**
+ * @test
+ */
+ public function ${1:name}(): void
+ {
+ ${0}
+ }
+
+snippet dump
+ var_dump(${1});${2}
+
+snippet die
+ throw new \Exception('debugging end: ' . var_export(${1}, true));${2}
diff --git a/home/programs/neovim/configuration/snippets/plantuml.snippets b/home/programs/neovim/configuration/snippets/plantuml.snippets
new file mode 100644
index 0000000..f427db7
--- /dev/null
+++ b/home/programs/neovim/configuration/snippets/plantuml.snippets
@@ -0,0 +1,4 @@
+snippet file
+ @startuml
+ ${0}
+ @enduml
diff --git a/home/programs/neovim/configuration/snippets/rst.snippets b/home/programs/neovim/configuration/snippets/rst.snippets
new file mode 100644
index 0000000..0d26118
--- /dev/null
+++ b/home/programs/neovim/configuration/snippets/rst.snippets
@@ -0,0 +1,108 @@
+snippet post
+ .. post:: `strftime("%b %d, %Y")`
+ :tags: ${2}
+ :excerpt: 2
+
+ ${1:Title}
+ =========
+
+ Further reading
+ ---------------
+
+snippet filetoc
+ .. raw:: pdf
+
+ PageBreak oneColumn
+
+ .. contents::
+
+ .. raw:: pdf
+
+ PageBreak oneColumn
+
+snippet filefooter
+ .. Some meta configuration for the document
+
+ .. |date| date:: %d.%m.%Y
+ .. |time| date:: %H:%M
+
+ .. section-numbering::
+
+ .. footer::
+
+ ###Page### / ###Total###
+
+ .. vi: spelllang=de
+
+snippet contents
+ .. contents::
+ :local:
+
+snippet toc
+ .. toctree::
+
+ Subfolder/index
+
+snippet label
+ .. _${0}:
+
+snippet note
+ .. note::
+
+ ${0}
+
+snippet see
+ .. seealso::
+
+ ${0}
+
+snippet admo
+ .. ${1:attention, caution, danger, error, hint, important, note, tip, warning, admonition, title}::
+
+ ${0}
+
+snippet todo
+ .. todo:: ${0}
+
+snippet include
+ .. literalinclude:: /Includes.txt${0}
+
+snippet sidebar
+ .. sidebar:: ${0}
+
+snippet figure
+ .. figure:: /Images/${1:1-Installation/figure-1-2.png}
+ :align: center
+
+ ${2:Figure 1-2: The autocompletion feature will show you possible class names}
+snippet file
+ .. _${1:refLabel}:
+
+ ${2:heading}
+ =====
+
+ $0
+
+snippet codeinclude
+ .. literalinclude:: ${1:filename}
+ :language: ${2:php}
+ :emphasize-lines: 12,15-18
+ :linenos:
+
+snippet code
+ .. code-block:: ${1:php}
+ :linenos:
+
+ ${0}
+
+snippet youtube
+ .. youtube:: ${1:videoHash}
+
+snippet index
+ .. index::
+ single: ${1:indexWord}
+
+snippet option
+ .. option:: ${1:optionName}
+
+ $0
diff --git a/home/programs/neovim/configuration/snippets/ruby.snippets b/home/programs/neovim/configuration/snippets/ruby.snippets
new file mode 100644
index 0000000..eb78492
--- /dev/null
+++ b/home/programs/neovim/configuration/snippets/ruby.snippets
@@ -0,0 +1,4 @@
+snippet test
+ test "${1}" do
+
+ end
diff --git a/home/programs/neovim/configuration/snippets/twig.snippets b/home/programs/neovim/configuration/snippets/twig.snippets
new file mode 100644
index 0000000..0b6e99e
--- /dev/null
+++ b/home/programs/neovim/configuration/snippets/twig.snippets
@@ -0,0 +1,8 @@
+snippet dump
+ {{ dump(${0}) }}
+
+snippet include
+ {{ include('${0}.html.twig') }}
+
+snippet path
+ {{ path('${1:route_name}') }}
diff --git a/home/programs/neovim/configuration/snippets/typoscript.snippets b/home/programs/neovim/configuration/snippets/typoscript.snippets
new file mode 100644
index 0000000..8b09db6
--- /dev/null
+++ b/home/programs/neovim/configuration/snippets/typoscript.snippets
@@ -0,0 +1,2 @@
+snippet include
+ @import 'EXT:${1:ext_key}/${2:Path}/${3:FileName}.typoscript'
diff --git a/home/programs/neovim/configuration/snippets/xml.snippets b/home/programs/neovim/configuration/snippets/xml.snippets
new file mode 100644
index 0000000..90176bc
--- /dev/null
+++ b/home/programs/neovim/configuration/snippets/xml.snippets
@@ -0,0 +1,48 @@
+snippet xml
+
+
+snippet xlifft3
+
+
+
+
+
+
+
+
+
+
+
+
+snippet flexform
+
+
+
+ array
+
+
+
+
+
+ input
+
+
+
+
+
+
+
+snippet trans
+
+
+
+
+snippet cdata
+
+
+snippet phpunitsql
+
+
+
+
+
diff --git a/home/programs/neovim/configuration/snippets/yaml.snippets b/home/programs/neovim/configuration/snippets/yaml.snippets
new file mode 100644
index 0000000..b0ea782
--- /dev/null
+++ b/home/programs/neovim/configuration/snippets/yaml.snippets
@@ -0,0 +1,17 @@
+snippet file
+ services:
+ _defaults:
+ autowire: true
+ autoconfigure: true
+ public: false
+
+ DanielSiepmann\DsSite\:
+ resource: '../Classes/*'
+
+ DanielSiepmann\DsSite\Frontend\DataProcessing\:
+ resource: '../Classes/Frontend/DataProcessing/*'
+
+snippet basevariant
+ -
+ base: '%env("TYPO3_BASE")%'
+ condition: 'getenv("TYPO3_BASE")'