mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
chore: add mark fix?
This commit is contained in:
parent
b932402a67
commit
e603e789f6
1 changed files with 17 additions and 0 deletions
17
lua/registers.lua
Normal file
17
lua/registers.lua
Normal 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
|
||||
Loading…
Add table
Reference in a new issue