forked from extern/nix-config
neovim(clipboard-image-nvim): Customize image name
This commit is contained in:
parent
02f2a2bce4
commit
1f80cd691e
@ -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,
|
||||
}
|
||||
}
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user