fresh
This commit is contained in:
commit
055b3368c8
472 files changed
+40488
No files matched your search
@@ -0,0 +1,39 @@
|
||||
return {
|
||||
{
|
||||
import = "lazyvim.plugins.extras.coding.yanky",
|
||||
},
|
||||
{
|
||||
"gbprod/yanky.nvim",
|
||||
opts = function(_, opts)
|
||||
local utils = require("yanky.utils")
|
||||
local mapping = require("yanky.telescope.mapping")
|
||||
|
||||
opts.highlight = { timer = 250 }
|
||||
opts.ring = { storage = jit.os:find("Windows") and "shada" or "sqlite" }
|
||||
opts.picker = {
|
||||
telescope = {
|
||||
use_default_mappings = false,
|
||||
mappings = {
|
||||
default = mapping.put("p"),
|
||||
i = {
|
||||
["<c-g>"] = mapping.put("p"),
|
||||
["<c-h>"] = mapping.put("P"),
|
||||
["<c-x>"] = mapping.delete(),
|
||||
["<c-r>"] = mapping.set_register(utils.get_default_register()),
|
||||
},
|
||||
n = {
|
||||
p = mapping.put("p"),
|
||||
P = mapping.put("P"),
|
||||
d = mapping.delete(),
|
||||
r = mapping.set_register(utils.get_default_register()),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{"<leader>sy", function() require("telescope").extensions.yank_history.yank_history({}) end, mode = {"n", "v"}, desc = "Yank History"},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user