From a214ae9e35b119ffb2900ea70099bc284c9d4d07 Mon Sep 17 00:00:00 2001 From: Asep Komarudin <68836805+pojokcodeid@users.noreply.github.com> Date: Wed, 1 Mar 2023 09:46:24 +0700 Subject: [PATCH] Updated 7. Contoh Custom Plugins (markdown) --- 7.-Contoh-Custom-Plugins.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/7.-Contoh-Custom-Plugins.md b/7.-Contoh-Custom-Plugins.md index 62460c3..94b3ae6 100644 --- a/7.-Contoh-Custom-Plugins.md +++ b/7.-Contoh-Custom-Plugins.md @@ -1165,3 +1165,30 @@ return{ summer : https://github.com/echasnovski/mini.indentscope +# yanky.nvim +- but file lua/plugin/yanky.lua +```lua +return{ + "gbprod/yanky.nvim", + event = "BufRead", + config = function() + local status_ok, yanky = pcall(require, "yanky") + if not status_ok then + return + end + yanky.setup({ + ring = { + history_length = 50, + storage = "memory", + }, + preserve_cursor_position = { + enabled = false, + }, + }) + + -- cycle through the yank history, only work after paste + vim.keymap.set("n", "[y", "(yankycycleforward)") + vim.keymap.set("n", "]y", "(yankycyclebackward)") + end, +} +```