From d415bbb33a1c2a3f9a2492668b57c4db0098ef1d Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Wed, 26 Jun 2024 00:14:19 +0800 Subject: Update --- snippets/chartjs_simple_bar_chart | 18 ++++++++++++++++++ snippets/html/details | 2 -- snippets/html/html_with_basic_head | 21 --------------------- snippets/html_details | 2 ++ snippets/html_with_basic_head | 21 +++++++++++++++++++++ snippets/lua/function | 3 --- snippets/lua/keymap | 6 ------ snippets/lua_function | 3 +++ snippets/lua_keymap | 6 ++++++ snippets/markdown/table | 6 ------ snippets/markdown_table | 6 ++++++ snippets/mermaid_simple_diagram | 8 ++++++++ 12 files changed, 64 insertions(+), 38 deletions(-) create mode 100644 snippets/chartjs_simple_bar_chart delete mode 100644 snippets/html/details delete mode 100644 snippets/html/html_with_basic_head create mode 100644 snippets/html_details create mode 100644 snippets/html_with_basic_head delete mode 100644 snippets/lua/function delete mode 100644 snippets/lua/keymap create mode 100644 snippets/lua_function create mode 100644 snippets/lua_keymap delete mode 100644 snippets/markdown/table create mode 100644 snippets/markdown_table create mode 100644 snippets/mermaid_simple_diagram (limited to 'snippets') diff --git a/snippets/chartjs_simple_bar_chart b/snippets/chartjs_simple_bar_chart new file mode 100644 index 0000000..0e581cb --- /dev/null +++ b/snippets/chartjs_simple_bar_chart @@ -0,0 +1,18 @@ +{ + "type": "bar", + "data": { + "labels": ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"], + "datasets": [{ + "label": "# of Votes", + "data": [12, 19, 3, 5, 2, 3], + "borderWidth": 1 + }] + }, + "options": { + "scales": { + "y": { + "beginAtZero": true + } + } + } +} diff --git a/snippets/html/details b/snippets/html/details deleted file mode 100644 index 26ecaa6..0000000 --- a/snippets/html/details +++ /dev/null @@ -1,2 +0,0 @@ -
TITLE -
diff --git a/snippets/html/html_with_basic_head b/snippets/html/html_with_basic_head deleted file mode 100644 index 219bae2..0000000 --- a/snippets/html/html_with_basic_head +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - My Website - - - - - - - -
-
-

foo

-
- - diff --git a/snippets/html_details b/snippets/html_details new file mode 100644 index 0000000..26ecaa6 --- /dev/null +++ b/snippets/html_details @@ -0,0 +1,2 @@ +
TITLE +
diff --git a/snippets/html_with_basic_head b/snippets/html_with_basic_head new file mode 100644 index 0000000..219bae2 --- /dev/null +++ b/snippets/html_with_basic_head @@ -0,0 +1,21 @@ + + + + + + + + My Website + + + + + + + +
+
+

foo

+
+ + diff --git a/snippets/lua/function b/snippets/lua/function deleted file mode 100644 index 4a0ea5e..0000000 --- a/snippets/lua/function +++ /dev/null @@ -1,3 +0,0 @@ -function() - -end diff --git a/snippets/lua/keymap b/snippets/lua/keymap deleted file mode 100644 index 255fe49..0000000 --- a/snippets/lua/keymap +++ /dev/null @@ -1,6 +0,0 @@ -vim.keymap.set( - 'n', - 'gp', - require('gitsigns').prev_hunk, - { buffer = bufnr, desc = '[G]o to [P]revious Hunk' } -) diff --git a/snippets/lua_function b/snippets/lua_function new file mode 100644 index 0000000..4a0ea5e --- /dev/null +++ b/snippets/lua_function @@ -0,0 +1,3 @@ +function() + +end diff --git a/snippets/lua_keymap b/snippets/lua_keymap new file mode 100644 index 0000000..255fe49 --- /dev/null +++ b/snippets/lua_keymap @@ -0,0 +1,6 @@ +vim.keymap.set( + 'n', + 'gp', + require('gitsigns').prev_hunk, + { buffer = bufnr, desc = '[G]o to [P]revious Hunk' } +) diff --git a/snippets/markdown/table b/snippets/markdown/table deleted file mode 100644 index cb95fd4..0000000 --- a/snippets/markdown/table +++ /dev/null @@ -1,6 +0,0 @@ -| Column1 | Column2 | Column3 | Column4 | -| --------------- | --------------- | --------------- | --------------- | -| Item1.1 | Item2.1 | Item3.1 | Item4.1 | -| Item1.2 | Item2.2 | Item3.2 | Item4.2 | -| Item1.3 | Item2.3 | Item3.3 | Item4.3 | - diff --git a/snippets/markdown_table b/snippets/markdown_table new file mode 100644 index 0000000..cb95fd4 --- /dev/null +++ b/snippets/markdown_table @@ -0,0 +1,6 @@ +| Column1 | Column2 | Column3 | Column4 | +| --------------- | --------------- | --------------- | --------------- | +| Item1.1 | Item2.1 | Item3.1 | Item4.1 | +| Item1.2 | Item2.2 | Item3.2 | Item4.2 | +| Item1.3 | Item2.3 | Item3.3 | Item4.3 | + diff --git a/snippets/mermaid_simple_diagram b/snippets/mermaid_simple_diagram new file mode 100644 index 0000000..9a7d25d --- /dev/null +++ b/snippets/mermaid_simple_diagram @@ -0,0 +1,8 @@ +graph TD + A[Enter Chart Definition] --> B(Preview) + B --> C{decide} + C --> D[Keep] + C --> E[Edit Definition] + E --> B + D --> F[Save Image and Code] + F --> B -- cgit v1.2.3-70-g09d2