1
Fork 0
satellite/home/features/neovim/plugins/clipboard-image.lua

16 lines
231 B
Lua
Raw Normal View History

2023-12-07 22:35:57 +01:00
local M = {}
function M.img_name()
vim.fn.inputsave()
local name = vim.fn.input("Name: ")
vim.fn.inputrestore()
if name == nil or name == "" then
return os.date("%y-%m-%d-%H-%M-%S")
end
return name
end
return M