diff --git a/nvim/coc-settings.json b/nvim/coc-settings.json deleted file mode 100644 index 8fbc94c1..00000000 --- a/nvim/coc-settings.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "snippets.userSnippetsDirectory": "~/dotfiles/nvim/snips", - "coc.preferences.useQuickfixForLocations": true, - "diagnostic.warningSign": "", - "diagnostic.errorSign": "", - "diagnostic.infoSign": "", - "diagnostic.hintSign": "ﯦ", - "suggest.completionItemKindLabels": { - "keyword": "", - "variable": "", - "value": "", - "operator": "Ψ", - "constructor": "", - "function": "ƒ", - "reference": "渚", - "constant": "", - "method": "", - "struct": "פּ", - "class": "", - "interface": "", - "text": "", - "enum": "", - "enumMember": "", - "module": "", - "color": "", - "property": "", - "field": "料", - "unit": "", - "event": "鬒", - "file": "", - "folder": "", - "snippet": "", - "typeParameter": "", - "default": "" - }, - "typescript.showUnused": true, - "javascript.showUnused": true, - "suggest.noselect": true -} diff --git a/nvim/snips/all.snippets b/nvim/snips/all.snippets deleted file mode 100644 index f369f5c2..00000000 --- a/nvim/snips/all.snippets +++ /dev/null @@ -1,71 +0,0 @@ -snippet date "YYYY-MM-DD" -`!v strftime("%Y-%m-%d")` -endsnippet - -snippet UID "unique ID using date time format" -`!v strftime("%Y%m%d%H%M%S")` -endsnippet - -snippet unlicense -This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -For more information, please refer to -endsnippet - -snippet import_sh -#! /usr/bin/env sh -endsnippet - -snippet import_py -#! /usr/bin/env python3 -endsnippet - -snippet import_fish -#! /usr/bin/env fish -endsnippet - -snippet import_wolframscript -#! /usr/bin/env wolframscript -endsnippet - -snippet import_cpp -#include -using namespace std; - -int main() { - return 0; -} -endsnippet - -snippet import_html - - - - - - - - - -endsnippet diff --git a/nvim/snips/cpp.snippets b/nvim/snips/cpp.snippets deleted file mode 100644 index 1d0eb46c..00000000 --- a/nvim/snips/cpp.snippets +++ /dev/null @@ -1,84 +0,0 @@ -snippet if -if ( $1 ) { - $2 -} -endsnippet - -snippet for -for (int ${1:i} = 0; $1 < ${2:n}; $1++) { - $0 -} -endsnippet - -snippet do -do { - 1; -} while ($2); -endsnippet - -snippet while -while ($1) { - $2; -} -endsnippet - -snippet main -#include -using namespace std; - -int main() { - return 0; -} -endsnippet - -snippet kiemTraSoNguyenTo -bool kiemTraSoNguyenTo(int number) { - bool flag = false; - int count = 0; - - if (number < 2 || number > 100) { - flag = false; - } else { - for (int i = 2; i <= number / 2; i++) { - if (number % i == 0) { - count++; - } - } - if (count == 0) { - flag = true; - } - } - return flag; -} -endsnippet - -snippet nhapSoNguyenDuong -int nhapSoNguyenDuong(int &n) { - do { - cin >> n; - } while (n <= 0); - - return n; -} -endsnippet - -snippet kiemTraSoHoangThien -bool kiemTraSoHoangThien(int number) { - int sum = 0; - int flag = false; - - for (int i = 1; i < number; i++) { - if (number % i == 0) { - sum += i; - } - } - - if (sum == number) { - flag = true; - } else { - flag = false; - } - - return flag; -} -endsnippet diff --git a/nvim/snips/cs.snippets b/nvim/snips/cs.snippets deleted file mode 100644 index 2db2b334..00000000 --- a/nvim/snips/cs.snippets +++ /dev/null @@ -1,16 +0,0 @@ -snippet NhapMang -public static void NhapMang(int[] array, int number) { - for (int i = 0; i < number; i++) { - Console.Write("Nhập phần tử thứ " + (i + 1) + ": "); - array[i] = Convert.ToInt32(Console.ReadLine()); - } -} -endsnippet - -snippet XuatMang -public static void XuatMang(int[] array, int number) { - for (int i = 0; i < number; i++) { - Console.Write(array[i] + "\t"); - } -} -endsnippet diff --git a/nvim/snips/gitcommit.snippets b/nvim/snips/gitcommit.snippets deleted file mode 100644 index b56ae0cd..00000000 --- a/nvim/snips/gitcommit.snippets +++ /dev/null @@ -1,47 +0,0 @@ -snippet feature "A new feature" -🌟feature($1): $2 -endsnippet - -snippet fix "A bug fix" -🐞fix($1): $2 -endsnippet - -snippet documents "Documentation only changes" -📚documents($1): $2 -endsnippet - -snippet style "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)" -💄style($1): $2 -endsnippet - -snippet refactor "A code change that neither fixes a bug or adds a feature" -🎨refactor($1): $2 -endsnippet - -snippet performance "A code change that improves performance" -⚡️performance($1): $2 -endsnippet - -snippet test "Adding missing tests" -✅test($1): $2 -endsnippet - -snippet chore "Changes to the build process or auxiliary tools and libraries such as documentation generation" -🔩chore($1): $2 -endsnippet - -snippet build "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)" -🔨build($1): $2 -endsnippet - -snippet ci "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)" -🤖ci($1): $2 -endsnippet - -snippet clean_code -💄style($1): clean code -endsnippet - -snippet revert "Reverts a previous commit" -⏪revert($1): $2 -endsnippet diff --git a/nvim/snips/javascript.snippets b/nvim/snips/javascript.snippets deleted file mode 100644 index 79f784f5..00000000 --- a/nvim/snips/javascript.snippets +++ /dev/null @@ -1,9 +0,0 @@ -snippet cl -console.log( $1 ); -endsnippet - -snippet for -for (let i = 0; $1 ; i++) { - $2 -} -endsnippet diff --git a/nvim/snips/markdown.snippets b/nvim/snips/markdown.snippets deleted file mode 100644 index c0875b14..00000000 --- a/nvim/snips/markdown.snippets +++ /dev/null @@ -1,91 +0,0 @@ -snippet youtubeDefaultDescription -👋 Hi folks -• I'm a random nerd, finding something fun to do every day. -• Filming yourself for fun while I live in the earth. -• I disable comment by default. So if you have something want to talk with me go to the link below. -• Connect with me: https://bio.link/thuanpham2311 - -==DISCLAIMER== -My stories, lessons, and advice are my personal experience, not reflecting opinions from any organization or company. - -==© copyright== -• There is no need to email me for permission. -• Use my content however you want! Email it, share it, reprint it with or without credit. -• Change it around, put in a bunch of swear words and attribute them to me. -⇒ It's okay! You just DO WHAT THE F**K YOU WANT TO. - -#thuanpham2311 -endsnippet - -snippet talk-show -# Talk show `!v strftime("%b %d, %Y")`: - -📚 Chapters - -- 0:00 Hi - -**Note:** - -- $1 - -👋 Hi folks -• I'm a random nerd, finding something fun to do every day. -• Filming yourself for fun while I live in the earth. -• I disable comment by default. So if you have something want to talk with me go to the link below. -• Connect with me: https://bio.link/thuanpham2311 - -==DISCLAIMER== -My stories, lessons, and advice are my personal experience, not reflecting opinions from any organization or company. - -==© copyright== -• There is no need to email me for permission. -• Use my content however you want! Email it, share it, reprint it with or without credit. -• Change it around, put in a bunch of swear words and attribute them to me. -⇒ It's okay! You just DO WHAT THE F**K YOU WANT TO. - -#thuanpham2311 -endsnippet - -snippet post ---- -title: $1 -author: thuanpham2311 -date: `!v strftime("%Y-%m-%d %H:%M")` -categories: [Blogging] -tags: [$2] ---- - -$3 - -**Reference** - -- Thông tin về tui: - ---- - -**DISCLAIMER** - -Những câu chuyện, bài học và lời khuyên của tui là những trải nghiệm riêng của cá nhân, không phản ánh ý kiến từ những tổ chức hay công ty nào. Đa phần lời tui viết là chém gió, nên mấy chế nên suy ngẫm nó có phù hợp với hoàn cảnh của bản thân không nha. -endsnippet - -snippet video - ---- -- Author: $1 -- Link: $2 -> #video -endsnippet - -snippet article - ---- -- Author: $1 -- Link: $2 -> #article -endsnippet - -snippet shortLink "short link" ---- -redirect_to: $1 ---- -endsnippet diff --git a/nvim/snips/vim.snippets b/nvim/snips/vim.snippets deleted file mode 100644 index 831442a7..00000000 --- a/nvim/snips/vim.snippets +++ /dev/null @@ -1,7 +0,0 @@ -snippet plug -Plug '$1' -endsnippet - -snippet Plug -Plug '$1' -endsnippet