Add files via upload

This commit is contained in:
Asep Komarudin 2023-01-15 00:17:41 +07:00 committed by GitHub
commit e53a643e3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 5285 additions and 0 deletions

17
lua/user/yanky.lua Normal file
View file

@ -0,0 +1,17 @@
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)")