mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-08-23 18:55:22 +02:00
Updated 7. Contoh Custom Plugins (markdown)
parent
04762051e3
commit
a214ae9e35
1 changed files with 27 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue