1
0
forked from extern/nix-config

neovim(clipboard-image-nvim): Customize image name

This commit is contained in:
Donovan Glover 2023-07-26 10:02:05 -04:00
parent 02f2a2bce4
commit 1f80cd691e
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -354,6 +354,12 @@ in
default = {
img_dir = {"%:p:h", "_"},
img_dir_txt = "_",
img_name = function()
vim.fn.inputsave()
local name = vim.fn.input('Name: ')
vim.fn.inputrestore()
return os.date("%Y-%m-%d-") + name
end,
}
}
'';