chore: add mark fix?

pull/99/head
fm39hz-laptop 2024-10-29 09:26:39 +07:00
parent b932402a67
commit e603e789f6
1 changed files with 17 additions and 0 deletions

17
lua/registers.lua 100644
View File

@ -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