✨ feat(nvim): add yanky custom keymaps
This commit is contained in:
parent
9a93bc10af
commit
279cd69057
1 changed files with 25 additions and 0 deletions
|
@ -1,6 +1,31 @@
|
||||||
|
local utils = require("yanky.utils")
|
||||||
|
local mapping = require("yanky.telescope.mapping")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"gbprod/yanky.nvim",
|
"gbprod/yanky.nvim",
|
||||||
optional = true,
|
optional = true,
|
||||||
|
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()),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{"<leader>sy", function() require("telescope").extensions.yank_history.yank_history({}) end, mode = {"n", "v"}, desc = "Yank History"},
|
{"<leader>sy", function() require("telescope").extensions.yank_history.yank_history({}) end, mode = {"n", "v"}, desc = "Yank History"},
|
||||||
|
|
Loading…
Add table
Reference in a new issue