File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -252,15 +252,19 @@ function M.print_clipboard()
252252end
253253
254254local function copy_to_clipboard (content )
255+ local clipboard_name
255256 if M .config .actions .use_system_clipboard == true then
256257 vim .fn .setreg (" +" , content )
257258 vim .fn .setreg (' "' , content )
258- return notify . info ( string.format ( " Copied %s to system clipboard! " , content ))
259+ clipboard_name = " system"
259260 else
260261 vim .fn .setreg (' "' , content )
261262 vim .fn .setreg (" 1" , content )
262- return notify . info ( string.format ( " Copied %s to neovim clipboard! " , content ))
263+ clipboard_name = " neovim"
263264 end
265+
266+ vim .api .nvim_exec_autocmds (" TextYankPost" , {})
267+ return notify .info (string.format (" Copied %s to %s clipboard!" , content , clipboard_name ))
264268end
265269
266270function M .copy_filename (node )
You can’t perform that action at this time.
0 commit comments