diff options
| author | Nanderty <psopka@sopka.ch> | 2025-02-03 23:48:03 +0100 |
|---|---|---|
| committer | Nanderty <psopka@sopka.ch> | 2025-02-03 23:48:03 +0100 |
| commit | 6374db8ab535c1a56b7a064ef474580794b46dc1 (patch) | |
| tree | 86dd8b61c2ffcf7a8cb80bea2723b8a7770d25e7 /lua/Snippets/html | |
| parent | 7c730479e2e44e74d87be0d7c34dfaef96f9a6e1 (diff) | |
| download | neovim-config-6374db8ab535c1a56b7a064ef474580794b46dc1.tar.gz neovim-config-6374db8ab535c1a56b7a064ef474580794b46dc1.tar.bz2 neovim-config-6374db8ab535c1a56b7a064ef474580794b46dc1.zip | |
Groundwork for html snippets
Diffstat (limited to 'lua/Snippets/html')
| -rw-r--r-- | lua/Snippets/html/environments.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/Snippets/html/environments.lua b/lua/Snippets/html/environments.lua new file mode 100644 index 0000000..5a896c6 --- /dev/null +++ b/lua/Snippets/html/environments.lua @@ -0,0 +1,29 @@ +local helper = require('Snippets.luasniphelpers') + +return { + + s({ trig = 'prg', snippetType = 'autosnippet' }, + fmta( + [[ + <<p>> + <> + <</p>> + ]], + { + i(1), + } + ), + { condition = helper.line_begin } + ), + + s({ trig = 'lnk', snippetType = 'autosnippet' }, + fmta( + [[<<a href="<>">><><</a>>]], + { + i(1), + i(2) + } + ) + ), + +} |
