Updated 7. Contoh Custom Plugins (markdown)

Asep Komarudin 2023-03-01 09:46:24 +07:00
parent 04762051e3
commit a214ae9e35

@ -1165,3 +1165,30 @@ return{
summer : <be>
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", "<plug>(yankycycleforward)")
vim.keymap.set("n", "]y", "<plug>(yankycyclebackward)")
end,
}
```