-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Migrate all snippets to VSC style because my snippets weren't that complex and didn't utilize the power of Luasnip's snippet engine. 2. Due to 1. clean up and simplify plugin configuration. 3. Provide the possibility to overwrite the snippets folder path.
- Loading branch information
Showing
14 changed files
with
251 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"Gmail": { | ||
"prefix": "gmail", | ||
"body": "[email protected]", | ||
"description": "Insert your Gmail address" | ||
}, | ||
"Rootknecht": { | ||
"prefix": "rootknecht", | ||
"body": "[email protected]", | ||
"description": "Insert the Rootknecht email address" | ||
}, | ||
"MFG": { | ||
"prefix": "mfg", | ||
"body": ["Mit freundlichen Grüßen", "Michael Peter"], | ||
"description": "Insert a friendly closing statement" | ||
}, | ||
"Sehr Geehrte": { | ||
"prefix": "sehrg", | ||
"body": ["Sehr geehrte Damen und Herren,", "", ""], | ||
"description": "Insert a formal greeting" | ||
}, | ||
"Modeline": { | ||
"prefix": "modeline", | ||
"body": "vim: set foldmethod=marker foldmarker={{{,}}} :", | ||
"description": "Insert a Vim modeline for fold settings" | ||
}, | ||
"Current Date": { | ||
"prefix": "date", | ||
"body": "${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}", | ||
"description": "Insert the current date in YYYY-MM-DD format" | ||
}, | ||
"Current Time": { | ||
"prefix": "time", | ||
"body": "${CURRENT_HOUR}:${CURRENT_MINUTE}", | ||
"description": "Insert the current time in HH:MM format" | ||
}, | ||
"ISO Date-Time": { | ||
"prefix": "htime", | ||
"body": "${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}T${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}+10:00", | ||
"description": "Insert the current date and time in ISO 8601 format" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"Println": { | ||
"prefix": "fl", | ||
"body": ["fmt.Println(${1:text})", "${0}"], | ||
"description": "Simple Println Snippet" | ||
}, | ||
"Sprintf": { | ||
"prefix": "fs", | ||
"body": ["fmt.Sprintf(\"${1:verbs}\", ${2:args})", "${0}"], | ||
"description": "Simple Sprintf Snippet" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"Tasks Configuration": { | ||
"prefix": "tasks", | ||
"body": [ | ||
"{", | ||
" \"version\": \"2.0.0\",", | ||
" \"tasks\": [", | ||
" {", | ||
" \"label\": \"Test Overseer\",", | ||
" \"type\": \"shell\",", | ||
" \"command\": \"ping -c 4 google.com\",", | ||
" \"group\": \"test\",", | ||
" \"presentation\": {", | ||
" \"reveal\": \"always\",", | ||
" \"panel\": \"new\"", | ||
" }", | ||
" }", | ||
" ]", | ||
"}" | ||
], | ||
"description": "Insert a tasks configuration template" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"Pretty Print": { | ||
"prefix": "pp", | ||
"body": ["vim.print(${1:args})"], | ||
"description": "Pretty Print" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"GitLab Warning Emoji": { | ||
"prefix": "gitlab_warn", | ||
"body": [":warning: ${1:warning}${0}"], | ||
"description": "Warning emoji for GitLab markdown" | ||
}, | ||
"Hugo Image Shortcut": { | ||
"prefix": "hugoimg", | ||
"body": ["{{< img name=\"${1:name}\" lazy=\"${2:true}\" >}}"], | ||
"description": "Insert a Hugo image shortcut" | ||
}, | ||
"Hugo TOC": { | ||
"prefix": "hugotoc", | ||
"body": ["{{< toc >}}"], | ||
"description": "Hugo Table of Contents" | ||
}, | ||
"Hugo Separator": { | ||
"prefix": "hugosep", | ||
"body": ["<!-- more -->"], | ||
"description": "Insert a separator in Hugo" | ||
}, | ||
"Hugo Resource Entry": { | ||
"prefix": "hugores", | ||
"body": ["- name: ${1:name}", " src: ${2:${1}}", " title: ${3:title}"], | ||
"description": "Insert a Hugo resource entry" | ||
}, | ||
"Hugo Alert": { | ||
"prefix": "hugoalert", | ||
"body": [ | ||
"{{<< alert ${1:opts} >>}}", | ||
"${2:text}", | ||
"{{<< /alert >>}}", | ||
"${0}" | ||
], | ||
"description": "Alert shortcode of Blowfish theme" | ||
}, | ||
"LTeX Language": { | ||
"prefix": "ltexLang", | ||
"body": ["<!-- LTeX: language=${1:lang} -->${0}"], | ||
"description": "Overwrite language for LTeX LSP" | ||
}, | ||
"Markdown Link": { | ||
"prefix": "link", | ||
"body": ["[${1:text}](${2:url})${0}"], | ||
"description": "Insert a default Markdown link" | ||
}, | ||
"Changelog Template": { | ||
"prefix": "chlog", | ||
"body": [ | ||
"# Changelog", | ||
"", | ||
"All notable changes to this project will be documented in this file.", | ||
"", | ||
"The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),", | ||
"and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).", | ||
"", | ||
"## [Unreleased]", | ||
"", | ||
"## [1.1.1] - 2023-03-05", | ||
"", | ||
"### Added", | ||
"", | ||
"### Fixed", | ||
"", | ||
"### Changed", | ||
"", | ||
"### Removed", | ||
"", | ||
"[unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.1.1...HEAD", | ||
"[0.0.3]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.2...v0.0.3", | ||
"[0.0.2]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.1...v0.0.2", | ||
"[0.0.1]: https://github.com/olivierlacan/keep-a-changelog/releases/tag/v0.0.1" | ||
], | ||
"description": "Keep a changelog template" | ||
} | ||
} |
Oops, something went wrong.