summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz/utils/snippet.lua
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-19 18:34:13 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-19 18:34:13 +0900
commit307fceea38b7352a79b0bdb87025a34b76973867 (patch)
tree382eb3e6a11973bc2c6ba33eee14d43ec2a9566b /ar/.config/TheSiahxyz/lua/thesiahxyz/utils/snippet.lua
parentb66f68b8c014a3041c936ee9de1b57db5bcb50fb (diff)
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/utils/snippet.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/utils/snippet.lua38
1 files changed, 0 insertions, 38 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/utils/snippet.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/utils/snippet.lua
deleted file mode 100644
index 57bb211..0000000
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/utils/snippet.lua
+++ /dev/null
@@ -1,38 +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 f = ls.function_node
-local c = ls.choice_node
--- local rep = require("luasnip.extras").rep
--- local k = require("luasnip.nodes.key_indexer").new_key
-local r = ls.restore_node
-local fmt = require("luasnip.extras.fmt").fmt
-
-local M = {}
-M.i = 0
-
-M.js_quotes = function(index)
- M.i = M.i + 1
- return c(index, { fmt("'{}'", { r(1, M.i) }), fmt("`{}`", { r(1, M.i) }), fmt('"{}"', { r(1, M.i) }), t("") })
-end
-
-M.js_selector = function(index)
- return c(index, { fmt("/{}/i", { i(1) }), fmt("'{}'", { i(1) }), fmt("`{}`", { i(1) }), t("") })
-end
-
-M.rtl_selector = function(index)
- return c(index, { t("screen.get"), t("await screen.find"), t("screen.query") })
-end
-
-M.tracked_i_nodes = {}
-
-M.tin = function(index, key)
- if not M.tracked_i_nodes[key] then
- M.tracked_i_nodes[key] = i(index)
- end
- return M.tracked_i_nodes[key]
-end
-
-return M