diff --git a/lua/plugins/yanky.lua b/lua/plugins/yanky.lua index 8fdf62b..7a307ac 100644 --- a/lua/plugins/yanky.lua +++ b/lua/plugins/yanky.lua @@ -1,7 +1,19 @@ return { 'gbprod/yanky.nvim', config = function() - require('yanky').setup({}) + require('yanky').setup({ + ring = { + history_length = 100, + storage = 'shada', + sync_with_numbered_registers = true, + cancel_event = 'update', + ignore_registers = { '_' }, + update_register_on_cycle = false, + }, + system_clipboard = { + sync_with_ring = false, + }, + }) vim.keymap.set({ 'n', 'x' }, 'p', '(YankyPutAfter)') vim.keymap.set({ 'n', 'x' }, 'P', '(YankyPutBefore)') vim.keymap.set({ 'n', 'x' }, 'gp', '(YankyGPutAfter)')