diff options
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/snippets/quarto.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/snippets/quarto.lua | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/snippets/quarto.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/snippets/quarto.lua deleted file mode 100644 index 74b9fb8..0000000 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/snippets/quarto.lua +++ /dev/null @@ -1,28 +0,0 @@ -local ls = require("luasnip") - -local s = ls.snippet -local i = ls.insert_node -local t = ls.text_node --- local d = ls.dynamic_node -local c = ls.choice_node --- local f = ls.function_node --- local r = ls.restore_node -local fmt = require("luasnip.extras.fmt").fmta --- local h = require("thesiahxyz.utils.snippet") - -local code_cell_snippet = s( - "`", - fmt( - [[```<lang> -<last> -``]], - { - lang = c(1, { t("python"), t("") }), - last = i(0), -- Place cursor here after expanding the snippet - } - ) -) - --- Add the snippets for multiple filetypes -ls.add_snippets("markdown", { code_cell_snippet }) -ls.add_snippets("quarto", { code_cell_snippet }) |
