diff options
Diffstat (limited to 'snippets')
-rw-r--r-- | snippets/html/html_with_basic_head | 21 | ||||
-rw-r--r-- | snippets/lua/keymap | 6 |
2 files changed, 27 insertions, 0 deletions
diff --git a/snippets/html/html_with_basic_head b/snippets/html/html_with_basic_head new file mode 100644 index 0000000..219bae2 --- /dev/null +++ b/snippets/html/html_with_basic_head | |||
@@ -0,0 +1,21 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <meta charset="UTF-8"> | ||
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
6 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
7 | |||
8 | <title>My Website</title> | ||
9 | |||
10 | <link rel="stylesheet" href="./style.css"> | ||
11 | <link rel="icon" href="./favicon.ico" type="image/x-icon"> | ||
12 | |||
13 | <script defer src="index.js"></script> | ||
14 | </head> | ||
15 | <body> | ||
16 | <header></header> | ||
17 | <main> | ||
18 | <h1>foo</h1> | ||
19 | </main> | ||
20 | </body> | ||
21 | </html> | ||
diff --git a/snippets/lua/keymap b/snippets/lua/keymap new file mode 100644 index 0000000..7ea9396 --- /dev/null +++ b/snippets/lua/keymap | |||
@@ -0,0 +1,6 @@ | |||
1 | vim.keymap.set( | ||
2 | 'n', | ||
3 | '<leader>gp', | ||
4 | require('gitsigns').prev_hunk, | ||
5 | { buffer = bufnr, desc = '[G]o to [P]revious Hunk' } | ||
6 | ) | ||