vim9script import autoload "kg8m/plugin.vim" export def OnSource(): void g:yankround_dir = $"{$XDG_DATA_HOME}/vim/yankround" g:yankround_max_history = 500 g:yankround_use_region_hl = true nmap p (yankround-p) xmap p (yankround-p) nmap P (yankround-P) nmap yankround#is_active() ? "(yankround-prev)" : "" nmap yankround#is_active() ? "(yankround-next)" : "" enddef export def Cache(): list return g:_yankround_cache enddef export def CacheAndRegtype(index: number): list return yankround#_get_cache_and_regtype(index) enddef plugin.EnsureSourced("yankround.vim")