From e603e789f6eee7827ff7f0d0ba9bcb191a71e291 Mon Sep 17 00:00:00 2001 From: fm39hz-laptop Date: Tue, 29 Oct 2024 09:26:39 +0700 Subject: [PATCH] chore: add mark fix? --- lua/registers.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lua/registers.lua diff --git a/lua/registers.lua b/lua/registers.lua new file mode 100644 index 0000000..b392096 --- /dev/null +++ b/lua/registers.lua @@ -0,0 +1,17 @@ +local M = {} + +local chars = "abcdefghijklmnopqrstuvwxyz" + +M.wipe_alpha = function() + ---@type string[] + local reg_chars = {} + local _ = chars:gsub(".", function(v) + table.insert(reg_chars, v) + end) + for _, v in pairs(reg_chars) do + vim.fn.setreg(v, "") + end + vim.cmd.wshada({ bang = true }) +end + +return M