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()
252
252
end
253
253
254
254
local function copy_to_clipboard (content )
255
+ local clipboard_name
255
256
if M .config .actions .use_system_clipboard == true then
256
257
vim .fn .setreg (" +" , content )
257
258
vim .fn .setreg (' "' , content )
258
- return notify . info ( string.format ( " Copied %s to system clipboard! " , content ))
259
+ clipboard_name = " system"
259
260
else
260
261
vim .fn .setreg (' "' , content )
261
262
vim .fn .setreg (" 1" , content )
262
- return notify . info ( string.format ( " Copied %s to neovim clipboard! " , content ))
263
+ clipboard_name = " neovim"
263
264
end
265
+
266
+ vim .api .nvim_exec_autocmds (" TextYankPost" , {})
267
+ return notify .info (string.format (" Copied %s to %s clipboard!" , content , clipboard_name ))
264
268
end
265
269
266
270
function M .copy_filename (node )
You can’t perform that action at this time.
0 commit comments