From 307fceea38b7352a79b0bdb87025a34b76973867 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 19 Jun 2025 18:34:13 +0900 Subject: updates --- .../TheSiahxyz/lua/thesiahxyz/utils/snippet.lua | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 ar/.config/TheSiahxyz/lua/thesiahxyz/utils/snippet.lua (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/utils/snippet.lua') 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 -- cgit v1.2.3