mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-12 04:36:37 +02:00
neovim(clipboard-image-nvim): Customize image name
This commit is contained in:
parent
02f2a2bce4
commit
1f80cd691e
@ -354,6 +354,12 @@ in
|
|||||||
default = {
|
default = {
|
||||||
img_dir = {"%:p:h", "_"},
|
img_dir = {"%:p:h", "_"},
|
||||||
img_dir_txt = "_",
|
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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user